summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Huuhko <kai.huuhko@gmail.com>2015-05-16 04:51:57 +0300
committerKai Huuhko <kai.huuhko@gmail.com>2015-05-16 04:51:57 +0300
commit661193de60e542a80e88019d59342f345f10a1ae (patch)
treeb73cc7ab2a26471764b3b5038da7df3882000b6e
parent144a113446b3e43ad1b45fdb3f4157a4afa97b47 (diff)
Fix outlines panel inadvertedly being controlled by mouse wheel
-rw-r--r--lekha/app.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/lekha/app.py b/lekha/app.py
index b580341..519b63e 100644
--- a/lekha/app.py
+++ b/lekha/app.py
@@ -296,11 +296,12 @@ class Document(Table):
296 n.show() 296 n.show()
297 297
298 p = self.ol_p = Panel( 298 p = self.ol_p = Panel(
299 self, orient=ELM_PANEL_ORIENT_LEFT, hidden=True, 299 self, orient=ELM_PANEL_ORIENT_LEFT,
300 size_hint_weight=EXPAND_BOTH, size_hint_align=FILL_BOTH, 300 size_hint_weight=EXPAND_BOTH, size_hint_align=FILL_BOTH,
301 scrollable=True, scrollable_content_size=0.35) 301 ) #scrollable=True, scrollable_content_size=0.35)
302 p.hidden = True
302 scr.on_move_add(lambda x: p.move(*x.pos)) 303 scr.on_move_add(lambda x: p.move(*x.pos))
303 scr.on_resize_add(lambda x: p.resize(*x.size)) 304 scr.on_resize_add(lambda x: p.resize(x.size[0] * 0.35, x.size[1]))
304 305
305 ol_gl = self.ol_gl = Genlist( 306 ol_gl = self.ol_gl = Genlist(
306 p, size_hint_weight=EXPAND_BOTH, size_hint_align=FILL_BOTH, 307 p, size_hint_weight=EXPAND_BOTH, size_hint_align=FILL_BOTH,