1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-04 11:05:46 +01:00

Fix rehash on FF6.

This commit is contained in:
Kris Maglione
2011-09-08 16:42:06 -04:00
parent c6035ce674
commit de0ad598e5
2 changed files with 14 additions and 5 deletions

View File

@@ -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;
} }

View File

@@ -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.