Open TBog opened 1 year ago
I'm thinking of changing the stored size and position from pixels to a percentage.
In order to not compromise on precision, I'd say use percentages like 99.999% and you're good.
I'm thinking that I can compute the position if I also save the screen size with the widget size and position.
Ah that makes sense
I can't figure out how to make the widget stay centered when switching from portrait to landscape.
Yes, currently the widget position is stored as an absolute position. We should be able to either set different position and size for portrait and landscape or find a way to automagically compute good ones when we switch.
Description
When changing the screen resolution the widgets zoom in or out.
Context
Honor phone lets the user change display resolution
Steps to Reproduce
To reproduce the behavior:
Expected behavior
Widgets do not change position or size
Device info