mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-04 12:35:46 +01:00
Fix rehash on FF6.
This commit is contained in:
@@ -770,6 +770,15 @@ var DOM = Class("DOM", {
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
force = Math.round(isect.width - rect.width) || Math.round(isect.height - rect.height);
|
force = Math.round(isect.width - rect.width) || Math.round(isect.height - rect.height);
|
||||||
|
let vp = parent.viewport;
|
||||||
|
if (force)
|
||||||
|
util.dump(vp,
|
||||||
|
rect.left - vp.left,
|
||||||
|
rect.right - vp.right,
|
||||||
|
rect.top - vp.top,
|
||||||
|
rect.bottom - vp.bottom,
|
||||||
|
isect.width - rect.width, isect.height - rect.height,
|
||||||
|
parent[0]);
|
||||||
if (force)
|
if (force)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ defineModule("main", {
|
|||||||
require: ["config", "help", "highlight", "io", "overlay", "services", "util"]
|
require: ["config", "help", "highlight", "io", "overlay", "services", "util"]
|
||||||
}, this);
|
}, this);
|
||||||
|
|
||||||
const BASE = "resource://dactyl-content/";
|
var BASE = "resource://dactyl-content/";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @class ModuleBase
|
* @class ModuleBase
|
||||||
@@ -56,10 +56,10 @@ var Modules = function Modules(window) {
|
|||||||
* module constructor.
|
* module constructor.
|
||||||
* @optional
|
* @optional
|
||||||
* @param {Object} moduleInit The module initialization functions
|
* @param {Object} moduleInit The module initialization functions
|
||||||
* for the new module. Each function is called as soon as the named module
|
* for the new module. Each function is called as soon as the
|
||||||
* has been initialized, but after the module itself. The constructors are
|
* named module has been initialized. The constructors are
|
||||||
* guaranteed to be called in the same order that the dependent modules
|
* guaranteed to be called in the same order that the dependent
|
||||||
* were initialized.
|
* modules were initialized.
|
||||||
* @optional
|
* @optional
|
||||||
*
|
*
|
||||||
* @returns {function} The constructor for the resulting module.
|
* @returns {function} The constructor for the resulting module.
|
||||||
|
|||||||
Reference in New Issue
Block a user