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:
parent
7b73e96863
commit
e83e46b08a
File diff suppressed because one or more lines are too long
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user