Account for input margins rather than negative margins to expand available screen area.
Categories
(Core :: Layout: Form Controls, task)
Tracking
()
Tracking | Status | |
---|---|---|
firefox105 | --- | fixed |
People
(Reporter: emilio, Assigned: emilio)
References
Details
Attachments
(1 file)
This is a follow-up to bug 1783500. The existing expansion for the screen area works great on Windows and Linux, but on macOS it can conceptually cause a menulist to go off-screen, because of this margin:
Instead we should do the same as that bug did, and use the input-region-margin, which is the amount of space that has no content (that is, that contains the shadow and so on).
Assignee | ||
Comment 1•2 years ago
|
||
This is a follow-up to bug 1783500. The existing expansion for the
screen area works great on Windows and so on, but on macOS it can
conceptually cause a menulist to go off-screen, because of this margin
used to move menulists to the left:
Instead we should do the same as that bug did, and use the
input-region-margin, which is the amount of space that has no content
(that is, that contains the shadow and so on) and is zero on macOS
(because shadows on macOS are drawn by the OS unlike on Windows /
Linux).
This required extra test changes so it was worth getting it reviewed
separately.
Comment 3•2 years ago
|
||
Backed out for causing mochitest-chrome failures on test_largemenu.html.
[task 2022-08-11T19:34:34.868Z] 19:34:34 INFO - TEST-PASS | toolkit/content/tests/chrome/test_largemenu.html | panel movement top is set after moving
[task 2022-08-11T19:34:34.868Z] 19:34:34 INFO - Buffered messages finished
[task 2022-08-11T19:34:34.870Z] 19:34:34 INFO - TEST-UNEXPECTED-FAIL | toolkit/content/tests/chrome/test_largemenu.html | panel movement move after set left and top x to -1 - got -1, expected +0
[task 2022-08-11T19:34:34.870Z] 19:34:34 INFO - SimpleTest.is@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:497:14
[task 2022-08-11T19:34:34.870Z] 19:34:34 INFO - is@chrome://mochitests/content/chrome/toolkit/content/tests/chrome/window_largemenu.xhtml:167:55
[task 2022-08-11T19:34:34.871Z] 19:34:34 INFO - testPopupMovement@chrome://mochitests/content/chrome/toolkit/content/tests/chrome/window_largemenu.xhtml:393:5
[task 2022-08-11T19:34:34.871Z] 19:34:34 INFO - onpopupshown@chrome://mochitests/content/chrome/toolkit/content/tests/chrome/window_largemenu.xhtml:1:1
[task 2022-08-11T19:34:34.872Z] 19:34:34 INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-08-11T19:34:34.873Z] 19:34:34 INFO - TEST-UNEXPECTED-FAIL | toolkit/content/tests/chrome/test_largemenu.html | panel movement move after set left and top y to -1 - got -1, expected +0
[task 2022-08-11T19:34:34.873Z] 19:34:34 INFO - SimpleTest.is@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:497:14
[task 2022-08-11T19:34:34.875Z] 19:34:34 INFO - is@chrome://mochitests/content/chrome/toolkit/content/tests/chrome/window_largemenu.xhtml:167:55
[task 2022-08-11T19:34:34.875Z] 19:34:34 INFO - testPopupMovement@chrome://mochitests/content/chrome/toolkit/content/tests/chrome/window_largemenu.xhtml:394:5
[task 2022-08-11T19:34:34.876Z] 19:34:34 INFO - onpopupshown@chrome://mochitests/content/chrome/toolkit/content/tests/chrome/window_largemenu.xhtml:1:1
[task 2022-08-11T19:34:34.877Z] 19:34:34 INFO - TEST-PASS | toolkit/content/tests/chrome/test_largemenu.html | panel movement left is not set after moving to -1
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Comment 5•2 years ago
|
||
bugherder |
Description
•