Closed
Bug 1505578
Opened 7 years ago
Closed 7 years ago
Flexbox highlighter is offset when container contains padding
Categories
(DevTools :: Inspector, defect, P2)
DevTools
Inspector
Tracking
(firefox65+ verified)
VERIFIED
FIXED
Firefox 65
People
(Reporter: miker, Assigned: miker)
References
Details
Attachments
(2 files)
Since bug 1501226 landed the Flexbox Highlighter is offset inside iframes.
See attached image.
| Assignee | ||
Comment 1•7 years ago
|
||
Turns out that padding inside the container also causes issues but is related to the same calculation.
| Assignee | ||
Comment 2•7 years ago
|
||
This issue is nothing to do with iframes.
When a flexbox container contains padding then everything is offset because we set our canvas origin to the content box of the container.
I agree that we should only draw in the content area we need to make our discovery of a node's coordinates much smarter to avoid situations like this.
Summary: Flexbox highlighter is offset inside iframes → Flexbox highlighter is offset when container contains padding
| Assignee | ||
Comment 3•7 years ago
|
||
| Assignee | ||
Comment 4•7 years ago
|
||
I found a few situations where everything is offset so I am currently testing with a bunch of different combination of margin, padding, etc.
Tracked for 65. This issue was flagged by SV as a reason for yellow sign off on "DevTools Flexbox inspector" feature.
status-firefox65:
--- → affected
tracking-firefox65:
--- → +
Pushed by mratcliffe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/01b3cf972555
Flexbox highlighter is offset when container contains padding r=gl
Comment 7•7 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 65
Comment 8•6 years ago
|
||
I reproduced this issue using Fx 65.0a1 (2018-11-07) on Windows 10 x64.
I can confirm this issue is fixed, I verified using Fx 65.0b11, on Windows 10 x64, macOS 10.13.6 and Ubuntu 16.04 LTS.
Cheers!
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•