Bug 380289: ensure that max-height is >=0 to suppress error console warning, r=berend
This commit is contained in:
Родитель
9bfe2b5a0e
Коммит
b8e57e5b15
|
@ -2090,7 +2090,7 @@
|
|||
|
||||
var gripbar = document.getAnonymousElementByAttribute(this, "anonid", "gripbar1").boxObject.height;
|
||||
var height = document.getAnonymousElementByAttribute(this, "anonid", "eventbox").boxObject.height;
|
||||
evl.setAttribute("style", "max-height: " + (height-gripbar*2) + "px");
|
||||
evl.setAttribute("style", "max-height: " + Math.max(0, height-gripbar*2) + "px");
|
||||
]]></body>
|
||||
</method>
|
||||
</implementation>
|
||||
|
|
Загрузка…
Ссылка в новой задаче