-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve sub view example with dynamic viewports (#15681)
# Objective - Adds better comments and includes an example where the aspect ratio between `size` and `full_size` differ - Fixes #15576 ## Solution - Viewports are dynamically scaled to window size ## Testing - Tested with moving the window around and by manually setting the window scaling factor - Just to make sure nothing else is going on, someone on macOS should also test this ## Showcase Since calculating padding from window size is a hassle, the example now looks a bit more squished together: ![image](https://github.com/user-attachments/assets/68609cf2-5a67-49bd-8e0b-910bfd17f4d8)
- Loading branch information
Showing
1 changed file
with
132 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters