Skip to content

fix: call _initPosition if split attribute changes value.#211

Merged
bendera merged 1 commit intovscode-elements:mainfrom
RedGlow:redglow-split-attribute-change
Oct 26, 2024
Merged

fix: call _initPosition if split attribute changes value.#211
bendera merged 1 commit intovscode-elements:mainfrom
RedGlow:redglow-split-attribute-change

Conversation

@RedGlow
Copy link
Copy Markdown
Contributor

@RedGlow RedGlow commented Oct 26, 2024

If the attribute "split" changes its value from horizontal to vertical or vice-versa, the component changes its behavior but does not update the position attributes of the start and end containers, producing an inconsistent visual state.

This patch forces a call to _initPosition whenever "split" changes its value, and extends _initPosition so that it cleans up a potential previous state.

@bendera
Copy link
Copy Markdown
Member

bendera commented Oct 26, 2024

Wow, nice catch! Thanks!

@bendera bendera merged commit 3c89e3d into vscode-elements:main Oct 26, 2024
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.

2 participants