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: overflow feature now works correctly when menu-bar has "min-width: 0". #134

Merged
merged 5 commits into from
Feb 3, 2021

Conversation

sosa-vaadin
Copy link
Contributor

@sosa-vaadin sosa-vaadin commented Jan 28, 2021

The __detectOverflow method was changed. It will now reset visibility of all buttons and then hide any buttons that are overflowing, adding them to the "overflow" button.

Fixes #130
Fixes #133

@CLAassistant
Copy link

CLAassistant commented Jan 28, 2021

CLA assistant check
All committers have signed the CLA.

@sosa-vaadin
Copy link
Contributor Author

Fixes #130

web-padawan and others added 2 commits January 29, 2021 11:45
The menubar is now inside a container and tests do resizing of the container instead of the menubar itself.
Add a new test to check fix for the menubar not growing back on resizing (#130).
test/menu-bar.test.js Outdated Show resolved Hide resolved
test/menu-bar.test.js Outdated Show resolved Hide resolved
check if the overflow button is hidden after changing the items array of the menubar
@sosa-vaadin sosa-vaadin merged commit 6cabfd2 into master Feb 3, 2021
@sosa-vaadin sosa-vaadin deleted the 130-responsive-overflow branch February 3, 2021 09:31
yuriy-fix pushed a commit that referenced this pull request Feb 3, 2021
…h: 0". (CP: #134)

add a new test to check fix for the menubar not growing back on resizing (#130).

* add new fixture and test

check if the overflow button is hidden after changing the items array of the menubar

Co-authored-by: web-padawan <iamkulykov@gmail.com>
sosa-vaadin added a commit that referenced this pull request Feb 8, 2021
…h: 0". (CP: #134) (#135)

add a new test to check fix for the menu-bar not growing back on resizing (#130).

* add new fixture and test

check if the overflow button is hidden after changing the items array of the menubar

Co-authored-by: web-padawan <iamkulykov@gmail.com>

* fix: revert changes needed for Polymer 2

Co-authored-by: web-padawan <iamkulykov@gmail.com>
Co-authored-by: David Sosa <sosa@vaadin.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants