mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Safari: remove extra call to popup resize -- now smoother
This commit is contained in:
parent
c32ea31675
commit
1c60434977
1 changed files with 2 additions and 3 deletions
|
|
@ -35,10 +35,9 @@ var whenSizeChanges = function(elm, callback) {
|
|||
var onLoaded = function() {
|
||||
var body = document.body, popover = safari.self;
|
||||
var updateSize = function() {
|
||||
popover.width = body.offsetWidth;
|
||||
popover.height = body.offsetHeight;
|
||||
popover.width = body.clientWidth;
|
||||
popover.height = body.clientHeight;
|
||||
};
|
||||
updateSize();
|
||||
body.style.position = "relative"; // Necessary for size change detection
|
||||
whenSizeChanges(body, updateSize);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue