Closed Bug 1479756 Opened 6 years ago Closed 6 years ago

UI scales overlap

Categories

(DevTools :: Inspector: Animations, defect)

63 Branch
defect
Not set
normal

Tracking

(firefox-esr52 unaffected, firefox-esr60 unaffected, firefox61 unaffected, firefox62 unaffected, firefox63 verified)

VERIFIED FIXED
Firefox 63
Tracking Status
firefox-esr52 --- unaffected
firefox-esr60 --- unaffected
firefox61 --- unaffected
firefox62 --- unaffected
firefox63 --- verified

People

(Reporter: cfogel, Assigned: mantaroh)

References

Details

(Keywords: regression)

Attachments

(2 files, 2 obsolete files)

Attached image animation_scale.png
[Affected versions]:
- Firefox 63.0a1 (2018-07-30) 

[Affected platforms]:
- win 10x64, Ubuntu 16.04LTS, macOS 10.13.4

[Steps to reproduce]:
1. Launch Firefox;
2. Access the following link: https://rawgit.com/dadaa/3b73f847427025b51ba1ab7333013d0c/raw/77f3f0bb884875a179c3407f73bf8a8dd54751c9/doc_simple_animation.html
3. Open DevTools inspector - animation tab;
4. Observe the animation UI

[Expected result]:
- UI elements don't overlap

[Actual result]:
- for the timer indicator, in the first section hearders overlap/are visible 

[Regression range]:
- Bug 1468475 resulted after a mozregression run
- last good: 2018-07-12 08:55:33.060000
- first bad: 2018-07-12 08:58:54.411000

[Additional notes]:
- attached screenshot with the issue
Mantaroh, it seems that your patch in bug 1468475 caused this regresssion, could you have a look please? Thanks
Blocks: 1468475
Flags: needinfo?(mantaroh)
(In reply to Pascal Chevrel:pascalc from comment #1)
> Mantaroh, it seems that your patch in bug 1468475 caused this regresssion,
> could you have a look please? Thanks

Sure. I'll look into this.

Thanks.
Flags: needinfo?(mantaroh)
We might need to calculate label width from DOM element correctly in order to prevent overflowed label. This WIP patch will calculate label width from temporary div element:

https://hg.mozilla.org/try/rev/0e296e14889a28a79feb52529cb600e44d2ab8ae
Assignee: nobody → mantaroh
Status: NEW → ASSIGNED
This patch uses the getDerivedStateFromProps since the componentWillReceiveProps
is deprecated from React 16.3. The reason of storing tick lines element into
this component's state is this component need to calculate label's width from
tick lines element, this getDerivedStateFromProps is the static function
so that we can't access to 'this component' scope.

For detail, see https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html.
This patch will skip the first graduation by calculating and checking the width
of the label.
Attachment #8997769 - Attachment is obsolete: true
Attachment #8997768 - Attachment is obsolete: true
This patch will clip the overflowed tick label. In order to check the width,
this patch add the max-width into tick label element.

Furthermore, componentWillReceiveProps is deprecated from React 16.3.
So this patch will use componentDidUpdate instead of it.
Comment on attachment 8998087 [details]
Bug 1479756 - Clip the overlapped header tick label. r?daisuke

Daisuke Akatsuka (:daisuke) has approved the revision.

https://phabricator.services.mozilla.com/D2818
Attachment #8998087 - Flags: review+
Attachment #8998087 - Attachment description: description: Bug 1479756 - Clip the overlapped header tick label. r?daisuke → Bug 1479756 - Clip the overlapped header tick label. r?daisuke
Pushed by mantaroh@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/ff1da250bce2
Clip the overlapped header tick label. r=daisuke
https://hg.mozilla.org/mozilla-central/rev/ff1da250bce2
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
Confirmed fix on Win10x64, MacOS10.13.4, Ubuntu 16.04LTS.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: