Closed Bug 1171863 Opened 10 years ago Closed 9 years ago

Refresh the animation panel timelines when the panel is resized

Categories

(DevTools :: Inspector: Animations, defect)

defect
Not set
normal

Tracking

(firefox45 fixed)

RESOLVED FIXED
Firefox 45
Tracking Status
firefox45 --- fixed

People

(Reporter: pbro, Assigned: pbro)

References

Details

(Whiteboard: [polish-backlog][difficulty=medium])

Attachments

(2 files, 2 obsolete files)

STR: - with bug 1155663 in open a page with animations - open the animation inspector - make sure animations are displayed - resize the sidebar panel ER: the timelines adapt on resize AR: they don't!
Depends on: 1155663
Blocks: 1153271
No longer blocks: 1153271
Blocks: 1201278
Whiteboard: [polish-backlog]
Whiteboard: [polish-backlog] → [polish-backlog][difficulty=medium]
Working on this as part of 1197100. Turns out that removing all sizes in pixels and defining everything in % wasn't hard at all, so I'm going to do that. The trick for the js-generated background and header is to have its size in % too, and have a debounced window resize handler that regenerates it.
Assignee: nobody → pbrosset
Blocks: 1228005
Code should be OK, but I need to fix the broken tests now (16 failures). These are expected because various tests expect positions to be in pixels.
Attached image liquid-timeline.gif
Here's a what the UI looks like now with the patch applied.
And here's the final patch, with the impacted tests fixed.
Attachment #8692069 - Attachment is obsolete: true
Attachment #8692159 - Flags: review?(ttromey)
Forgot to remove an unrelated change.
Attachment #8692159 - Attachment is obsolete: true
Attachment #8692159 - Flags: review?(ttromey)
Attachment #8692166 - Flags: review?(ttromey)
Comment on attachment 8692166 [details] [diff] [review] Bug_1171863_-_Define_all_positions_and_sizes_in_pe.diff Review of attachment 8692166 [details] [diff] [review]: ----------------------------------------------------------------- Looks good.
Attachment #8692166 - Flags: review?(ttromey) → review+
Damn, sorry about that, and thanks for backing out. I have a fix for this test. Will take it for a spin on try shortly.
Flags: needinfo?(pbrosset)
The fix I made for the test seems to be working fine on try: https://treeherder.mozilla.org/#/jobs?repo=try&revision=0d49b95e49aa
Landed again with my test fix. Let's see if that stick. Given the many retriggers I did on try, it should.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 45
Component: Developer Tools: Inspector → Developer Tools: Animation Inspector
Depends on: 1239298
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: