calculator tweak

This commit is contained in:
Will McGugan
2022-08-30 12:50:29 +01:00
parent f5a8de7b8b
commit d258717330
2 changed files with 3 additions and 5 deletions

View File

@@ -2,8 +2,6 @@ Screen {
overflow: auto;
}
#calculator {
layout: table;
table-size: 4;
@@ -11,8 +9,8 @@ Screen {
table-columns: 1fr;
table-rows: 2fr 1fr 1fr 1fr 1fr 1fr;
margin: 1 2;
min-height:23;
min-width: 40;
min-height:26;
min-width: 50;
}
Button {

View File

@@ -111,7 +111,7 @@ class ScrollBarRender:
step_size = virtual_size / size
start = int(position / step_size * 9)
end = start + max(8, int(ceil(window_size / step_size * 9)))
end = start + max(9, int(ceil(window_size / step_size * 9)))
start_index, start_bar = divmod(start, 9)
end_index, end_bar = divmod(end, 9)