1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 07:18:08 +00:00

Fix panel height calculation in Opera

This commit is contained in:
Gabriele 2014-11-06 00:36:00 +01:00
parent 7b73e96863
commit e83e46b08a
2 changed files with 5 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -5255,7 +5255,10 @@ MUI.extend({
panelsToResize.each(function(panel){
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){
newPanelHeight = 0;
}