dalerank / nanogui-sdl

Minimalistic port of NanoGUI claim works with SDL API w/o external dependencies.
Other
437 stars 77 forks source link

Clamp popups so they don't fall off the bottom of the screen #49

Closed nhthn closed 3 years ago

nhthn commented 3 years ago

Popups, when their PopupButton is too low, can fall outside of the screen and render certain UI elements inaccessible. This PR clamps the position of popups so they stay on-screen.

Untitled

Note that the position of the anchor is incorrect in this case. This is hard to fix as the entire popup's texture is baked in, but I hope to address it in a future PR.

dalerank commented 3 years ago

You may also look for another changes here https://github.com/dalerank/nanogui, new widgets and behaviors