mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-27 19:57:45 +03:00
Avoid lags in firefox on resizing progress column
This commit is contained in:
parent
741e0a08ea
commit
484e021ca2
1 changed files with 5 additions and 1 deletions
|
@ -851,7 +851,11 @@ var TorrentsTable = new Class({
|
|||
|
||||
if (td.getChildren('div').length) {
|
||||
var div = td.getChildren('div')[0];
|
||||
div.setWidth(td.offsetWidth - 5);
|
||||
var newWidth = td.offsetWidth - 5;
|
||||
if (div.lastWidth !== newWidth) {
|
||||
div.setWidth(newWidth);
|
||||
div.lastWidth = newWidth;
|
||||
}
|
||||
if (div.getValue() != progressFormated)
|
||||
div.setValue(progressFormated);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue