-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some panes stop resizing after other panes are closed #8230
Comments
@valorin - for me the problem occurs only when animations are enabled. Could not reproduce it with animations disabled. |
Yeah that's exactly what happened with me. It's simple with animations, but harder and more random without them. |
BTW, it looks that disabling animation applies only to the "close pane" animation, but not to pane entrance animation. |
@Don-Vito It most certainly is not |
NP. I am creating a PR to allow disabling 😊 |
In any case with animations fully disabled (both close and entrance), I am currently unable to reproduce the issue.. of course probably the issue is somewhere else and animations just increase the probability. |
@zadjii-msft - I think I have a direction here 😊 This is a race. If you split the panes manually and slowly (aka after the animation has finished) no problem occurs. My guess is that in the completion of the animation, when you access the pane, it already has other children. I fixed it locally and it seems to work (although this is a race and you can never know 😊). Creating the PR for this one as well |
@zadjii-msft - actually I am not sure what is the best fix. What I am doing in PR is to ensure that the correct control gets the stretch alignment back. However the problem is more severe: during the animation the pane children might change. This applies not just for entrance animation but for the close animation as well. I am not sure what should be the approach - to lock the panes during the animation? |
Related to #7942 |
You know, locking the panes during the animation sounds like a really good idea, one that would probably resolve a whole host of these issues. |
🎉This issue was addressed in #8241, which has now been successfully released as Handy links: |
🎉This issue was addressed in #8241, which has now been successfully released as Handy links: |
There appears to be an issue caused by animations when panes are closed. With animations enabled and multiple panes (3+) in use, when you close a panel and attempt to resize the remaining panes, some of the panes don't resize correctly. I haven't tested extensively, however it appears that the created panes are the ones that cannot resize, while the original pane does get resized.
This is on the new Preview that was released today.
UPDATE: This doesn't appear to require animations enabled. I've experienced it with animations disabled when moving around and closing panes. It seems to be triggered first by removing a pane, as everything works as expected until I close something. After that point, the behaviour is weird and some panes stop resizing.
I'll leave the steps below as-is, as that's the most reliable way to replicate that I've discovered.
Environment
Steps to reproduce
"disableAnimations": false
),Expected behavior
The pane divider should resize, with both panes included.
Actual behavior
The first pane is resized, but the second (originally the third) stays where it is. As a result, you either have a gray gap between the two panes, or the first pane covers up the second pane.
Toggling
"disableAnimations": true
to disable animations fixes the issue and the panes resize correctly.3 panes showing
top
before the second pane is closedRemaining two panes showing the second pane no resizing with the the first:
The text was updated successfully, but these errors were encountered: