Templarian / ui.bootstrap.contextMenu

AngularJS Bootstrap UI Context Menu
MIT License
259 stars 127 forks source link

prevent nested menu from obscuring parent when user clicks towards right edge of window #144

Open dwightkelly opened 6 years ago

dwightkelly commented 6 years ago

fix for issue #143

josetaira commented 6 years ago

hi @dwightkelly, thanks for your contrib. Not able to test this immediately, but before I merge it in, could you please post a screenshot of what it looks like with this change?

dwightkelly commented 6 years ago

normal "right" mode screen shot 2018-08-13 at 3 15 27 pm

overlapped if child menu would render off right edge of window screen shot 2018-08-13 at 3 15 41 pm

AlexConnolly commented 6 years ago

This doesn't work for menus that have more than 2 levels.

image

Note how the right of the image is the edge of the screen. Will look at fixing this now, but feel free to validate too.

AlexConnolly commented 6 years ago

I'm using orientation left right now to resolve my issue. I guess in this circumstance, for me, it was easier to use orientation left. I couldn't find any documentation for this, though, so it would be nice to maybe be pointed in the direction or I will happily write some.