summaryrefslogtreecommitdiff
path: root/java/ImageProcessing
diff options
context:
space:
mode:
Diffstat (limited to 'java/ImageProcessing')
-rw-r--r--java/ImageProcessing/framework/Hierarchy.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/java/ImageProcessing/framework/Hierarchy.java b/java/ImageProcessing/framework/Hierarchy.java
index edab96717e0..41b1825ef4d 100644
--- a/java/ImageProcessing/framework/Hierarchy.java
+++ b/java/ImageProcessing/framework/Hierarchy.java
@@ -171,7 +171,8 @@ public class Hierarchy extends Canvas
drawLevel(g, SPACE, SPACE);
- if (d.width < scope_.width || d.height < scope_.height)
+ if (d.width < scope_.width || d.height < scope_.height ||
+ d.width > scope_.width || d.height > scope_.height)
resize(scope_.width, scope_.height);
}
@@ -193,7 +194,7 @@ public class Hierarchy extends Canvas
if (icon_ != null)
{
entry_height = Math.max(string_height, icon_.iconSize().height);
- entry_width += icon_.iconSize().width;
+ entry_width += icon_.iconSize().width + SPACE;
indent += icon_.iconSize().width/2;
if (! deadend_)
drawShape(g, x, y + (entry_height - TRI_HEIGHT)/2, deadend_, collapsed_);