Closed web-padawan closed 4 years ago
Connected to #261
DO NOT MERGE. This PR is a draft.
Changed the demo to have 4 levels of nesting to test it behaves like this:
Need to check if the fix works and add the tests.
Hi Serhii, It does not work. Menu and submenu is left aligned like this:
I continue investigating how to fix it.
@hongduc-phan ok, turns out there are several cases when menu is opened.
This is a tricky issue. If you have problems finding a solution, no worries. While you continue to investigate I'll try to take another look myself.
@hongduc-phan ok, turns out there are several cases when menu is opened.
- parent menu is right aligned, submenu is right aligned - works (if space is enough)
- parent menu is left aligned, submenu is left aligned - works with my fix
- parent menu is left aligned, submenu is right aligned - does not seem to work with my fix
This is a tricky issue. If you have problems finding a solution, no worries. While you continue to investigate I'll try to take another look myself.
The difficulty of left-aligned is to have the width of sub-menu. We can not control the width and it often inside much the parent menu if it is long enough. Yes, I continue to fix it.
Connected to #261
DO NOT MERGE. This PR is a draft.
Changed the demo to have 4 levels of nesting to test it behaves like this:
Need to check if the fix works and add the tests.