mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
calculator tweak
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user