mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-05 21:24:11 +01:00
added mail.js, <enter> and <esc> switch between normal and -- MESSAGE -- mode now
This commit is contained in:
@@ -180,7 +180,8 @@ vimperator.CommandLine = function () //{{{
|
||||
multilineOutputWidget.collapsed = true;
|
||||
}
|
||||
|
||||
var fontSize = document.defaultView.getComputedStyle(document.getElementById("main-window"), null).getPropertyValue("font-size");
|
||||
var id = vimperator.config.mainWindowID || "main-window";
|
||||
var fontSize = document.defaultView.getComputedStyle(document.getElementById(id), null).getPropertyValue("font-size");
|
||||
multilineOutputWidget.contentDocument.body.setAttribute("style", "font-size: " + fontSize);
|
||||
|
||||
multilineOutputWidget.contentDocument.body.innerHTML = output;
|
||||
@@ -191,7 +192,8 @@ vimperator.CommandLine = function () //{{{
|
||||
stylesheet.setAttribute("href", "chrome://vimperator/skin/vimperator.css");
|
||||
multilineOutputWidget.contentDocument.getElementsByTagName("head")[0].appendChild(stylesheet);
|
||||
|
||||
var availableHeight = getBrowser().mPanelContainer.boxObject.height;
|
||||
var availableHeight = getBrowser().mPanelContainer != undefined ?
|
||||
getBrowser().mPanelContainer.boxObject.height : getBrowser().boxObject.height;
|
||||
var contentHeight = multilineOutputWidget.contentDocument.height;
|
||||
var height = contentHeight < availableHeight ? contentHeight : availableHeight;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user