Skip to content

Commit

Permalink
Merge pull request uBlock-LLC#478 from chrisaljoudi/master
Browse files Browse the repository at this point in the history
Safari: remove extra call to popup resize -- now smoother
  • Loading branch information
gorhill committed Jan 12, 2015
2 parents 1591593 + 1c60434 commit 3982bd6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions platform/safari/vapi-popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down

0 comments on commit 3982bd6

Please sign in to comment.