Open
Bug 1424020
Opened 8 years ago
Updated 4 years ago
browserAction popup arrow is at wrong side if popup width is dynamically changed
Categories
(WebExtensions :: General, defect, P3)
WebExtensions
General
Tracking
(Not tracked)
UNCONFIRMED
People
(Reporter: mtanalin, Unassigned)
Details
Attachments
(1 file)
|
1.19 KB,
application/x-xpinstall
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0
Build ID: 20171204150510
Steps to reproduce:
browserAction’s popup arrow is at wrong side (at the right instead of at the left) of its popup window if:
1. the button is at the left of the Firefox toolbar,
2. the window is maximized (so there is no space to the left of the button, and the popup opens to the right),
3. and the popup width is dynamically changed after some time e.g. via `setTimeout()`.
A workaround is setting a `min-width` CSS property for `BODY`. The exact minimal needed value is 16-17 pixels (`17px`) in some cases (as for the testcase extension in particular) and `32px` in other cases.
Popup arrow is the arrow/triangle that shows what button the popup is related to.
Please see the attached minimal testcase extension to observe the bug yourself.
| Reporter | ||
Comment 1•8 years ago
|
||
| Reporter | ||
Comment 2•8 years ago
|
||
> A workaround is setting a `min-width` CSS property for `BODY`.
Looks like exact `min-width` value for the workaround to work depends on multiple things:
1. whether the Firefox window is maximized;
2. the distance between the `browserAction` button and left edge of the screen;
3. what toolbar style (Density) is used (Compact, Normal, Touch).
The values I mentioned were for the case when the “Compact” density is used and the `browserAction` button is the first/leftmost on the Firefox toolbar.
| Reporter | ||
Comment 3•8 years ago
|
||
A screenshot that shows both correct and wrong arrow positions with the testcase extension with the workaround enabled and disabled correspondingly:
http://tanalin.com/_experimentz/bugs/fx/2017/button-popup-arrow-position/screenshot.png
Updated•8 years ago
|
Priority: -- → P3
Updated•8 years ago
|
Product: Toolkit → WebExtensions
Updated•4 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•