mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-13 07:05:46 +01:00
Fix the MOW height calculation in Muttator.
This commit is contained in:
@@ -104,6 +104,12 @@ const configbase = { //{{{
|
||||
*/
|
||||
name: null,
|
||||
|
||||
/**
|
||||
* @property {number} The height (px) that is available to the output
|
||||
* window.
|
||||
*/
|
||||
get outputHeight() getBrowser().mPanelContainer.boxObject.height,
|
||||
|
||||
/**
|
||||
* @property {[string]} A list of extra scripts in the liberator or
|
||||
* application namespaces which should be loaded before liberator
|
||||
|
||||
@@ -1681,11 +1681,10 @@ function CommandLine() //{{{
|
||||
|
||||
let doc = multilineOutputWidget.contentDocument;
|
||||
|
||||
let availableHeight = 250;
|
||||
let availableHeight = 250; // Why? --djk
|
||||
try
|
||||
{
|
||||
availableHeight = getBrowser().mPanelContainer ?
|
||||
getBrowser().mPanelContainer.boxObject.height : getBrowser().boxObject.height;
|
||||
availableHeight = config.outputHeight;
|
||||
if (!outputContainer.collapsed)
|
||||
availableHeight += parseFloat(outputContainer.height);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user