-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
A-UIGraphical user interfaces, styles, layouts, and widgetsGraphical user interfaces, styles, layouts, and widgetsC-FeatureA new feature, making something new possibleA new feature, making something new possible
Description
What problem does this solve or what need does it fill?
There are now multiple occurrences where the code assumes only one window and proceeds calculations using the primary-window scale factor. This means setting the scale factor of the primary window will incorrectly affect all windows.
Code to be found here:
bevy_uibevy_text/text2d
What solution would you like?
These systems should instead be fetching the actual scale of the current window the UI tree is a part of instead of the PrimaryWindow.
What alternative(s) have you considered?
- Might require Support multiple UI roots #5622
- Might require Viewport Specific UI #5570
- Or a variation of that: "Window-specific UI"
kulkalkul and hammypants
Metadata
Metadata
Assignees
Labels
A-UIGraphical user interfaces, styles, layouts, and widgetsGraphical user interfaces, styles, layouts, and widgetsC-FeatureA new feature, making something new possibleA new feature, making something new possible