ScalarVector1 / DragonLens

Modern, customizable, and community-driven debugging and cheat mod for TModLoader
26 stars 14 forks source link

Fix toolbars going offscreen when changing orientation #34

Closed Jadams505 closed 1 year ago

Jadams505 commented 1 year ago

Issue: A horizontal toolbar is not guaranteed to fit as a vertical toolbar and if this happens the toolbar can go partially offscreen Solution: Prevented toolbars from changing orientation if they don't fix on screen in the new orientation

Issue: Moving a toolbar to a corner causes the panel to go partially offscreen Solution: Made relativePosition.X = 0 or 1 mutually exclusive with relativePosition.Y = 0 or 1 since currently there is no support for horizontal toolbars clamped to left/right side or vertical toolbars clamped to top/bottom