summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2016-03-29 17:15:20 +0300
committerKai Huuhko <kai.huuhko@gmail.com>2016-03-29 17:17:23 +0300
commit04ced3f167257272f6951ddd592be457da709268 (patch)
tree2bcd84c5d447fd9404fda3531b514294496635de
parent57c2fed5c1a86e9f91ff5e2eeb9c69b6fd18f405 (diff)
Make the document ui table packing more sensible
-rw-r--r--lekha/app.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/lekha/app.py b/lekha/app.py
index 349d8d5..e86c9cf 100644
--- a/lekha/app.py
+++ b/lekha/app.py
@@ -322,7 +322,7 @@ class Document(Table):
322 scr = self.scr = Scroller( 322 scr = self.scr = Scroller(
323 self, size_hint_weight=EXPAND_BOTH, size_hint_align=FILL_BOTH) 323 self, size_hint_weight=EXPAND_BOTH, size_hint_align=FILL_BOTH)
324 scr.callback_scroll_add(self._scrolled) 324 scr.callback_scroll_add(self._scrolled)
325 self.pack(scr, 0, 0, 4, 5) 325 self.pack(scr, 0, 0, 4, 1)
326 scr.show() 326 scr.show()
327 327
328 box = self.page_box = Box( 328 box = self.page_box = Box(
@@ -334,7 +334,7 @@ class Document(Table):
334 btn = Button( 334 btn = Button(
335 self, text="Toggle outlines", size_hint_align=ALIGN_LEFT) 335 self, text="Toggle outlines", size_hint_align=ALIGN_LEFT)
336 btn.callback_clicked_add(lambda x: self.ol_p.toggle()) 336 btn.callback_clicked_add(lambda x: self.ol_p.toggle())
337 self.pack(btn, 0, 5, 1, 1) 337 self.pack(btn, 0, 1, 1, 1)
338 btn.show() 338 btn.show()
339 339
340 spn = self.spn = Spinner( 340 spn = self.spn = Spinner(
@@ -342,14 +342,14 @@ class Document(Table):
342 size_hint_weight=EXPAND_HORIZ, size_hint_align=FILL_HORIZ) 342 size_hint_weight=EXPAND_HORIZ, size_hint_align=FILL_HORIZ)
343 spn.special_value_add(1, "First") 343 spn.special_value_add(1, "First")
344 spn.editable = True 344 spn.editable = True
345 self.pack(spn, 1, 5, 1, 1) 345 self.pack(spn, 1, 1, 1, 1)
346 spn.show() 346 spn.show()
347 347
348 btn = Button( 348 btn = Button(
349 self, text="show page", 349 self, text="show page",
350 size_hint_weight=EXPAND_HORIZ, size_hint_align=ALIGN_LEFT) 350 size_hint_weight=EXPAND_HORIZ, size_hint_align=ALIGN_LEFT)
351 btn.callback_clicked_add(self._show_page_cb, spn) 351 btn.callback_clicked_add(self._show_page_cb, spn)
352 self.pack(btn, 2, 5, 1, 1) 352 self.pack(btn, 2, 1, 1, 1)
353 btn.show() 353 btn.show()
354 354
355 menu = Menu(self.top_widget) 355 menu = Menu(self.top_widget)
@@ -375,7 +375,7 @@ class Document(Table):
375 self, text="%1.0f %%" % (self.zoom * 100.0), 375 self, text="%1.0f %%" % (self.zoom * 100.0),
376 size_hint_weight=EXPAND_HORIZ, size_hint_align=ALIGN_RIGHT) 376 size_hint_weight=EXPAND_HORIZ, size_hint_align=ALIGN_RIGHT)
377 zlbl.callback_clicked_add(z_clicked) 377 zlbl.callback_clicked_add(z_clicked)
378 self.pack(zlbl, 3, 5, 1, 1) 378 self.pack(zlbl, 3, 1, 1, 1)
379 zlbl.show() 379 zlbl.show()
380 380
381 n = self.page_notify = Notify(scr, align=(0.02, 0.02)) 381 n = self.page_notify = Notify(scr, align=(0.02, 0.02))