mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 02:27:09 -07:00
Fix panel height calculation in Opera
This commit is contained in:
parent
7b73e96863
commit
e83e46b08a
2 changed files with 5 additions and 2 deletions
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…
Add table
Add a link
Reference in a new issue