mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-14 11:55:46 +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 doc = multilineOutputWidget.contentDocument;
|
||||||
|
|
||||||
let availableHeight = 250; // Why? --djk
|
availableHeight = config.outputHeight;
|
||||||
try
|
if (!outputContainer.collapsed)
|
||||||
{
|
availableHeight += parseFloat(outputContainer.height);
|
||||||
availableHeight = config.outputHeight;
|
|
||||||
if (!outputContainer.collapsed)
|
|
||||||
availableHeight += parseFloat(outputContainer.height);
|
|
||||||
}
|
|
||||||
catch (e) {}
|
|
||||||
doc.body.style.minWidth = commandlineWidget.scrollWidth + "px";
|
doc.body.style.minWidth = commandlineWidget.scrollWidth + "px";
|
||||||
outputContainer.height = Math.min(doc.height, availableHeight) + "px";
|
outputContainer.height = Math.min(doc.height, availableHeight) + "px";
|
||||||
doc.body.style.minWidth = "";
|
doc.body.style.minWidth = "";
|
||||||
|
|||||||
Reference in New Issue
Block a user