parent
d173ab9f45
commit
2b3753d99c
@ -261,7 +261,7 @@ class TabBar:
|
|||||||
return
|
return
|
||||||
self.cell_width = cell_width
|
self.cell_width = cell_width
|
||||||
s = self.screen
|
s = self.screen
|
||||||
viewport_width = tab_bar.width - 2 * self.margin_width
|
viewport_width = max(4 * cell_width, tab_bar.width - 2 * self.margin_width)
|
||||||
ncells = viewport_width // cell_width
|
ncells = viewport_width // cell_width
|
||||||
s.resize(1, ncells)
|
s.resize(1, ncells)
|
||||||
s.reset_mode(DECAWM)
|
s.reset_mode(DECAWM)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user