Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fix a width so users cannot x scroll on selection frame. (#3955) (#4258)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenba authored and jaredhirsch committed Mar 22, 2018
1 parent ba4073f commit 77fa083
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 77fa083

Please # to comment.