Padding scale is affected by change of window size until GUI element is recreated.
Setup:
1. There is a custom frame, width/height fixed in styles, uses monolith background, dimensions are 200x200
2. Inside that frame(1) is another frame that uses standard "naked" style - on this frame padding is applied.
3. Inside naked frame (2) is a button with width/height fixed in styles, dimensions are 8x8, scalable=false, monolith.
Goal - position button(3) precisely in the center of frame(1).
Now weird behavior can be observed when changing leftpadding/toppadding of (2) on different window sizes:
- Start a game, window size is default, padding values for positioning button(3) in the center of frame(1) are (top=95, left=95).
- Maximize window (on 1080p), padding values for positioning dot in the center of frame(1) becomes (83, 83).
You need to actually try setting the new padding value to see the inconsistency, nothing visually happens on window size change. - Recreate GUI elements while game maximized - padding values of center back to (95, 95).