mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-23 02:42:41 +01:00
Merge pull request #478 from chrisaljoudi/master
Safari: remove extra call to popup resize -- now smoother
This commit is contained in:
commit
3982bd6de9
@ -56,10 +56,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 New Issue
Block a user