fix(display): centering displays in arrangement

This commit is contained in:
Jason Hansen 2024-06-01 12:26:58 -06:00 committed by GitHub
parent df8b90f3ac
commit 9294d9d476
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -124,8 +124,8 @@ impl<'a, Message: Clone> Widget<Message, cosmic::Theme, Renderer> for Arrangemen
let state = tree.state.downcast_mut::<State>();
state.max_dimensions = (
max_dimensions.0 as f32 * 1.25 / UNIT_PIXELS,
max_dimensions.1 as f32 * 1.25 / UNIT_PIXELS,
max_dimensions.0 as f32 / UNIT_PIXELS,
max_dimensions.1 as f32 / UNIT_PIXELS,
);
let limits = limits