1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 09:48:00 +01:00

Fix scrollbars occasionally appearing in the MOW.

--HG--
branch : key-processing
This commit is contained in:
Kris Maglione
2011-01-26 15:22:06 -05:00
parent 39a84ff18e
commit e06640f5ea
2 changed files with 6 additions and 6 deletions

View File

@@ -148,12 +148,6 @@ var CommandWidgets = Class("CommandWidgets", {
return this.commandbar; return this.commandbar;
} }
}); });
let fontSize = util.computedStyle(document.documentElement).fontSize;
styles.system.add("font-size", "dactyl://content/buffer.xhtml",
"body { font-size: " + fontSize + "; } \
html|html > xul|scrollbar { visibility: collapse !important; }",
true);
}, },
addElement: function addElement(obj) { addElement: function addElement(obj) {
const self = this; const self = this;

View File

@@ -8,6 +8,12 @@
var MOW = Module("mow", { var MOW = Module("mow", {
init: function () { init: function () {
let fontSize = util.computedStyle(document.documentElement).fontSize;
styles.system.add("font-size", "dactyl://content/buffer.xhtml",
"body { font-size: " + fontSize + "; } \
html|html > xul|scrollbar { visibility: collapse !important; }",
true);
XML.ignoreWhitespace = true; XML.ignoreWhitespace = true;
util.overlayWindow(window, { util.overlayWindow(window, {
objects: { objects: {