mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 00:47:21 -06:00
Fix panel height calculation in Opera
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user