-
Notifications
You must be signed in to change notification settings - Fork 746
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
submenu can't automatically adjust width #18
Comments
Fun problem… I have no clue why this is happening. Since my tests failed, I posted a question on StackOverflow. |
I guess I'll have to temporarily make the menu and sub-menus |
Fixed in version 1.5.2 |
…ing to min-width and min-height.
Funny thing. opt.$menu.find('ul').andSelf().css({position: 'static', display: 'block'}) you make all menus (root and all sub's) visible at once, and calculated width results in a summ of all widths of submenus. In my case it resulted in a bug. opt.$menu.find('ul').andSelf().each(function(){ Not sure if it's correct and fixes a current issue also, because for some reason I find it difficult to fully understand this part of code and why do we really need to recalculate the width. |
Please use this JSBin Template to provide a test case allowing me to reproduce your problem |
Done. Adding a custom icon for the arrow results in placement of that icon at 'min-width', but after that menu root mistically enlarges itself to the size that's more then min-width. |
Your arrow-image would be at the right side if you used .context-menu-submenu:after {
content: ">";
color: #666;
position: absolute;
top: 0;
right: 3px;
z-index: 1;
} aside from that I've fixed the problem locally. It will be included in the next release (around Christmas) |
When submenu width is larger then min-width, submenu can't automatically adjust width.
The text was updated successfully, but these errors were encountered: