Skip to content
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

fix(ui): fix panel resize bug #5407

Merged
merged 3 commits into from
Jan 4, 2024
Merged

Conversation

psychedelicious
Copy link
Collaborator

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update
  • Community Node Submission

Have you discussed this change with the InvokeAI team?

  • Yes
  • No, because:

Description

A bug that caused panels to be collapsed on a fresh indexedDb in was fixed in dd32c63, but this re-introduced a different bug that caused the panels to expand on window resize, if they were already collapsed.

Revert the previous change and instead add one imperative resize outside the observer, so that on startup, we set both panels to their minimum sizes.

QA Instructions, Screenshots, Recordings

  • Collapse both panels
  • Resize the window - they should not expand
  • Reset web UI - panels should be expanded after refresh

Merge Plan

This PR can be merged when approved

A bug that caused panels to be collapsed on a fresh indexedDb in was fixed in dd32c63, but this re-introduced a different bug that caused the panels to expand on window resize, if they were already collapsed.

Revert the previous change and instead add one imperative resize outside the observer, so that on startup, we set both panels to their minimum sizes.
@psychedelicious psychedelicious merged commit e16b558 into main Jan 4, 2024
7 checks passed
@psychedelicious psychedelicious deleted the fix/ui/panel-resize-bug branch January 4, 2024 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants