Skip to content

Commit 8272be5

Browse files
FreddyFunkjacobgkau
authored andcommitted
adjust oversized scroll area for display arrangement
1 parent e2bb9ad commit 8272be5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cosmic-settings/src/pages/display/arrangement.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,11 @@ impl<Message: Clone> Widget<Message, cosmic::Theme, Renderer> for Arrangement<'_
141141
let state = tree.state.downcast_mut::<State>();
142142

143143
state.max_dimensions = (
144-
max_dimensions.0 as f32 / UNIT_PIXELS,
144+
max_dimensions.0 as f32 / UNIT_PIXELS / 2.0,
145145
total_height as f32 / UNIT_PIXELS,
146146
);
147147

148-
let width = ((max_dimensions.0 as f32 * 2.0) as i32 + display_area.0) as f32 / UNIT_PIXELS;
148+
let width = (max_dimensions.0 as f32 + display_area.0 as f32) / UNIT_PIXELS;
149149
let height = total_height as f32 * VERTICAL_OVERHEAD / UNIT_PIXELS;
150150

151151
let limits = limits

0 commit comments

Comments
 (0)