Skip to content

Commit 60861c2

Browse files
committed
main: Align resize size up instead of down
Signed-off-by: Hector Martin <[email protected]>
1 parent 12e0fab commit 60861c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ def action_resize(self, resizable):
635635
val = self.get_size("New size", default=default, min=min_size, total=total)
636636
if val is None:
637637
continue
638-
val = align_down(val, PART_ALIGN)
638+
val = align_up(val, PART_ALIGN)
639639
if val < min_size:
640640
p_error(f"Size is too small, please enter a value > {ssize(min_size)} ({min_perc:.2f}%)")
641641
continue

0 commit comments

Comments
 (0)