Resize directions are not correct when in a rotated container
Categories
(Core :: DOM: Core & HTML, defect, P1)
Tracking
()
People
(Reporter: calixte, Assigned: emilio)
References
Details
Attachments
(2 files)
STR:
- open the attachment
- try to resize the green div
It's very hard to resize the div correctly.
In pdf.js, a page can be rotated and we want to be able to resize some editable elements in it.
For information, it works as expected in Chrome.
| Reporter | ||
Updated•4 years ago
|
| Assignee | ||
Comment 1•4 years ago
|
||
That's because the resizer basically only checks for physical positions: https://searchfox.org/mozilla-central/rev/c30349265c87047a324a471d2f39a216b6749262/dom/xul/XULResizerElement.cpp#145,174-176
This is the relevant chromium source that makes this work: https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/core/paint/paint_layer_scrollable_area.cc;l=2171;drc=70b0ee470bd53a63da6c4194579e8c2865db2b79
Should be rather straight-forward to convert the point relative to the current frame before computing the delta.
| Assignee | ||
Comment 2•4 years ago
|
||
| Assignee | ||
Comment 3•4 years ago
|
||
The patch I sent fixes it but I can't find a good test to extend. Happy to look into it, but if it's relatively urgent (or you feel like it), writing a WPT for this would be amazing. Calixte, how urgent is this for pdf.js?
| Reporter | ||
Comment 4•4 years ago
|
||
We want to ship the editing feature in 104 so I'd say it's a bit urgent.
I can disable the container resizing when the rotation angle is not 0 but clearly it'd be better to have this bug fixed asap.
Updated•4 years ago
|
Comment 5•4 years ago
|
||
(In reply to Calixte Denizet (:calixte) from comment #4)
We want to ship the editing feature in 104 so I'd say it's a bit urgent.
I can disable the container resizing when the rotation angle is not 0 but clearly it'd be better to have this bug fixed asap.
Setting severity/priority S3/P1 per this comment.
Comment 9•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/5401aa8df481
https://hg.mozilla.org/mozilla-central/rev/b16e28a2aab2
Comment 11•4 years ago
|
||
The patch landed in nightly and beta is affected.
:emilio, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- If no, please set
status-firefox103towontfix.
For more information, please visit auto_nag documentation.
| Assignee | ||
Updated•4 years ago
|
Description
•