From f5d9a75292fd7cf69b36659cf10e6af948bbe5b7 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Fri, 14 Feb 2003 13:54:33 +0000 Subject: [PATCH] Don't draw far-away ref nodes. git-svn-id: http://dom-editor.googlecode.com/svn/branches/Gtk2@469 ef21e15d-ca94-4315-9c45-0d95b1b2e117 --- Dome/Display2.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dome/Display2.py b/Dome/Display2.py index 7e6bd06..70accc4 100644 --- a/Dome/Display2.py +++ b/Dome/Display2.py @@ -202,8 +202,10 @@ class Display(g.HBox): attr_parent = None for node, bbox, draw_fn in self.walk_tree(self.ref_node, self.ref_pos): if bbox[1] > self.last_alloc[1]: break # Off-screen - - draw_fn() + if bbox[1] > -self.last_alloc[1]: + draw_fn() + else: + print 'Warning: Ref node way off:', bbox[1] if node.nodeType == Node.ATTRIBUTE_NODE: self.drawn[node] = (bbox, attr_parent) else: -- 2.11.4.GIT