From bf6aece31d537722c2be702ddab574eb0275b519 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 26 Jan 2021 14:01:52 +0800 Subject: [PATCH] bugfix --- kivyblocks/pagepanel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kivyblocks/pagepanel.py b/kivyblocks/pagepanel.py index 1012a8d..dc44e68 100644 --- a/kivyblocks/pagepanel.py +++ b/kivyblocks/pagepanel.py @@ -30,7 +30,7 @@ class MenuContainer(VBox): return False class PagePanel(VBox): - def __init__(self, bar_size=3, bar_at='top', enable_on_close=False, + def __init__(self, bar_size=2, bar_at='top', enable_on_close=False, left_menu=False, **kw): print('PagePanel().__init__():', bar_size, bar_at, left_menu) self.bar_size = bar_size @@ -51,7 +51,7 @@ class PagePanel(VBox): self.sub_widgets = [] VBox.__init__(self, **kw) self.bar = HBox(size_hint_y=None, - spacing=15, + spacing=CSize(bar_size/6), height=CSize(bar_size)) bcsize = bar_size * 0.85 self.content = VBox()