KEMBAR78
feat!: use stackOverlay property instead of stackThreshold by web-padawan · Pull Request #9052 · vaadin/web-components · GitHub
Skip to content

Conversation

@web-padawan
Copy link
Member

Description

Fixes #9048

  • Replaced stackThreshold property with stackOverlay that defines whether the layout should use stack mode
  • The stackOverlay can now be used in combination with forceOverlay to enforce the stack mode to be used
  • State attributes overlay and stack are preserved depending on which mode is used, so no changes to styling

Type of change

  • Behavior altering change

@web-padawan web-padawan requested a review from sissbruecker May 6, 2025 09:22
Comment on lines -551 to -553
// Remove overlay attribute temporarily to detect if there is enough space
// for both areas so that layout could switch back to the split mode.
this._overlay = false;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This block was not needed as _overlay is already reset to false in the __detectLayoutMode() method.

@sonarqubecloud
Copy link

sonarqubecloud bot commented May 6, 2025

@web-padawan web-padawan merged commit 518e64f into main May 6, 2025
9 checks passed
@web-padawan web-padawan deleted the refactor/mdl-stack-mode branch May 6, 2025 10:58
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.8.0.rc2 and is also targeting the upcoming stable 24.8.0 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MDL: Overlay/Stack mode selection API

3 participants