Settings Page Width Doesn't Animate Smoothly with Sidebar Collapsing and Expanding #14487

Open
opened 2026-01-31 04:11:36 +00:00 by claunia · 0 comments
Owner

Originally created by @ghost on GitHub (Jul 12, 2021).

Windows Terminal version (or Windows build number)

1.8.1521.0

Other Software

No response

Steps to reproduce

Ok, so the problem here is that when you click the hamburger menu to collapse or expand the side bar, four things happen:
1.) The sidebar's width smoothly animates.
2.) The x position of the page smoothly animates along with the sidebar width
3.) Right at the start of the animation, the width of the page instantly jumps to the size it will be at the end of the animation. This means everything that is right aligned or spans the width of the page also jumps.
4.) Because the x position is animating smoothly, the right aligned stuff jumps oddly. This is due to the fact that the width instantly shrinks (or expands) to the size it will be at the end of the animation before the end of the animation, while the x position is still moving toward where it needs to be.

Expected Behavior

Animate the width of the page at the same time as the sidebar by interpolating between the initial width and the new width.

Actual Behavior

The right aligned visual items (and items that span the entire width) appear to jump oddly.

https://user-images.githubusercontent.com/4098042/125309455-6721cd00-e2f7-11eb-98f8-7876a811b917.mp4

Originally created by @ghost on GitHub (Jul 12, 2021). ### Windows Terminal version (or Windows build number) 1.8.1521.0 ### Other Software _No response_ ### Steps to reproduce Ok, so the problem here is that when you click the hamburger menu to collapse or expand the side bar, four things happen: 1.) The sidebar's width smoothly animates. 2.) The *x position* of the page smoothly animates along with the sidebar width 3.) Right at the start of the animation, the width *of the page* instantly jumps to the size it will be at the end of the animation. This means everything that is right aligned or spans the width of the page also jumps. 4.) Because the x position is animating smoothly, the right aligned stuff jumps oddly. This is due to the fact that the width instantly shrinks (or expands) to the size it will be at the end of the animation *before* the end of the animation, *while* the x position is still moving toward where it needs to be. ### Expected Behavior Animate the width of the page at the same time as the sidebar by interpolating between the initial width and the new width. ### Actual Behavior The right aligned visual items (and items that span the entire width) appear to jump oddly. https://user-images.githubusercontent.com/4098042/125309455-6721cd00-e2f7-11eb-98f8-7876a811b917.mp4
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#14487