fix(display): centering displays in arrangement
This commit is contained in:
parent
df8b90f3ac
commit
9294d9d476
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue