-
Notifications
You must be signed in to change notification settings - Fork 128
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
[VisUI] SubMenu may be out of the screen if it larger then stage's width #220
Comments
Are you using 1.2.2 or newer? This was most likely fixed in 9f473c2. |
It's 1.2.3 and you referenced exact that cahnge that stands for current issue |
For me, it wasn't working before this change. Please provide SSCCE. That |
Yep this explains it, it's working as intended: not enough space on the right so it displays on the left. Too bad there is 0 available space on the left. I will make it always prefer side that has more available space. |
Done, thanks for reporting. |
I encountered with pretty strange behavior, once my
SubMenu
is no longer visible anymore. Then I noticed that problem occurs only if there is not enough width for submenu.So here is a code that resposible for the situation
MenuItem#showSubMenu()
:It looks very strange, because it always places
SubMenu
to the left toMenuItem
, and in most cases it could be even worse then displaying only portion to the right. For example, myMenuItem
at the most left corner of a screen, and screen width is less thenSubMenu
's width. So we've gotSubMenu
completely out of the screen.Perhaps this conditional check must be a little bit more complicate, it should check whether it's better to display submenu to the left or right to parent menu and has an addition special case when there is not enough width, then act somehow very specific, like place submenu to the most left corner of a screen.
The text was updated successfully, but these errors were encountered: