Skip to content

Commit 622903f

Browse files
ergunshDevtools-frontend LUCI CQ
authored andcommitted
[Animations] Fix animation ui not getting rendered
After the empty state update (crrev.com/c/6254938), we started not displaying the animations container. However, it was used to calculate the width of the timeline. This CL updates the logic for calculating the timeline width and calculates it based on the full width of the widget instead looking at the animations container. Bug: none Change-Id: I1fe608527f73e3068030401b997719c36ce68834 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6262908 Commit-Queue: Ergün Erdoğmuş <[email protected]> Auto-Submit: Ergün Erdoğmuş <[email protected]> Reviewed-by: Kim-Anh Tran <[email protected]>
1 parent 105cadc commit 622903f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

front_end/panels/animation/AnimationTimeline.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@ export class AnimationTimeline extends UI.Widget.VBox implements
10261026
}
10271027

10281028
override onResize(): void {
1029-
this.#cachedTimelineWidth = Math.max(0, this.#animationsContainer.offsetWidth - this.#timelineControlsWidth) || 0;
1029+
this.#cachedTimelineWidth = Math.max(0, this.contentElement.offsetWidth - this.#timelineControlsWidth) || 0;
10301030
this.scheduleRedraw();
10311031
if (this.#scrubberPlayer) {
10321032
this.syncScrubber();

0 commit comments

Comments
 (0)