-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix: open Drilldrown with the currently opened (sub)menu height #11416 #11425
fix: open Drilldrown with the currently opened (sub)menu height #11416 #11425
Conversation
…oundation#11416 Changes: - Save the currently opened sub-menu as `$currentMenu` - When calculating the Drilldown wrapper height, use the currently opened menu height instead of the primary menu. Closes foundation#11416
Note: I still need to add unit tests for this bug. |
Test the dynamic height of the wrapper instead of the static height of the element (data-drilldrown inside the wrapper).
`$currentMenu` is used by `_getMaxDims`. Changes: move `$currentMenu` initialization to `_init()`
I fixed a bug on initialization and added unit tests for the Drilldown resizing in the following cases (when toggled):
|
Will have a look asap. |
Ok, I checked this but it kinda feels like it still has some issue... What I did:
Did I get something wrong or is there actually something odd with the menu? |
@Owlbertz I tested it on |
@ncoden while this is true, I am struggling reproducing the issue you fixed with the PR. Maybe you could give some more info on how to reproduce? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
Sorry, didn't get the referenced issue. With the example provided the issue becomes pretty obvious. |
Thank you for the review @Owlbertz :) I asked you a review because you worked on the Drilldrown before. Do you want me to poke you on future pull requests for others components ? |
…eight-11416 for v6.5.0 c7ce8d5 fix: set the Drilldown height for on the currently opened (sub)menu foundation#11416 43c1fac test: add unit tests for Drilldown resizing on toggling 7f7dfd8 test: check the Drilldrown wrapper height instead of the element height 90c4e45 fix: set a default for the current menu in Drilldown before it is used 1db6a1f test: add unit test for the Drilldown height when reopened from a submenu foundation#11416 d4617ac clean: remove infinite timeout used for development in Drilldown tests Signed-off-by: Nicolas Coden <nicolas@ncoden.fr>
Description
When a Drilldown submenu is opened, then the whole Drilldown is closed and reopened, the submenu is still there but the Drilldown takes the height of the main menu.
This pull request fix this bug by using the active (sub)menu height when the Drilldown height is recalculated.
Changes
$currentMenu
Types of changes
functionality to change)
Checklist (all required):
develop
ordevelop-v...
).I have updated the documentation accordingly to my changes (if relevant).