mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 21:54:13 +01:00
Refactor commandline.updateOutputHeight.
Removes the unnecessary default height value and try/catch which appears to have been included to catch Muttator MOW sizing bugs fixed in e6da3cda5e5ad5b2ad69c8f8499824f23ab289b1.
This commit is contained in:
@@ -1681,14 +1681,9 @@ function CommandLine() //{{{
|
||||
|
||||
let doc = multilineOutputWidget.contentDocument;
|
||||
|
||||
let availableHeight = 250; // Why? --djk
|
||||
try
|
||||
{
|
||||
availableHeight = config.outputHeight;
|
||||
if (!outputContainer.collapsed)
|
||||
availableHeight += parseFloat(outputContainer.height);
|
||||
}
|
||||
catch (e) {}
|
||||
availableHeight = config.outputHeight;
|
||||
if (!outputContainer.collapsed)
|
||||
availableHeight += parseFloat(outputContainer.height);
|
||||
doc.body.style.minWidth = commandlineWidget.scrollWidth + "px";
|
||||
outputContainer.height = Math.min(doc.height, availableHeight) + "px";
|
||||
doc.body.style.minWidth = "";
|
||||
|
||||
Reference in New Issue
Block a user