tuikit/treeview.py
changeset 102 29a8a26a721f
parent 77 fc1989059e19
--- a/tuikit/treeview.py	Wed Aug 20 14:24:48 2014 +0200
+++ b/tuikit/treeview.py	Wed Aug 20 15:06:52 2014 +0200
@@ -349,12 +349,11 @@
         height = 0
         for num, _ in enumerate(self, start=1):
             height = num
-        self.sizereq.h = height
+        self.sizereq.update(h = height)
 
     def _update_spot(self):
         """Update spot to current position of cursor node."""
         for num, (_level, _index, _count, node) in enumerate(self):
             if node is self.cursor_node:
-                self._spot.x = _level * 2
-                self._spot.y = num
+                self._spot.update(_level * 2, num)