Browse Source

Fix panel height calculation in Opera

adaptive-webui-19844
Gabriele 10 years ago
parent
commit
e83e46b08a
  1. 2
      src/webui/www/public/scripts/mocha-yc.js
  2. 5
      src/webui/www/public/scripts/mocha.js

2
src/webui/www/public/scripts/mocha-yc.js

File diff suppressed because one or more lines are too long

5
src/webui/www/public/scripts/mocha.js

@ -5255,7 +5255,10 @@ MUI.extend({
panelsToResize.each(function(panel){ panelsToResize.each(function(panel){
var ratio = this.panelsTotalHeight / panel.offsetHeight.toInt(); var ratio = this.panelsTotalHeight / panel.offsetHeight.toInt();
var newPanelHeight = panel.getStyle('height').toInt() + (remainingHeight / ratio); var panelHeight = panel.getStyle('height').toInt();
var newPanelHeight = remainingHeight / ratio;
if (!isNaN(panelHeight))
newPanelHeight += panelHeight;
if (newPanelHeight < 1){ if (newPanelHeight < 1){
newPanelHeight = 0; newPanelHeight = 0;
} }

Loading…
Cancel
Save