Skip to content

Commit

Permalink
Fix a width so users cannot x scroll on selection frame. (mozilla-ser…
Browse files Browse the repository at this point in the history
  • Loading branch information
chenba committed Mar 22, 2018
1 parent 2070134 commit 0ea3fed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addon/webextension/selector/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ this.ui = (function() { // eslint-disable-line no-unused-vars
this.bgRight.style.top = `${pos.top}px`;
this.bgRight.style.height = `${pos.bottom - pos.top}px`;
this.bgRight.style.left = `${pos.right}px`;
this.bgRight.style.width = "100%";
this.bgRight.style.width = `${document.body.scrollWidth - pos.right}px`;
// the download notice is injected into an iframe that matches the document size
// in order to reposition it on scroll we need to bind an updated positioning
// function to some window events.
Expand Down

0 comments on commit 0ea3fed

Please sign in to comment.