Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Thienel2016-07-21 13:51:56 -0400
committerFlorian Thienel2016-07-21 13:51:56 -0400
commitc12b47e54cbccb10476a28788670e3ef6cb71a08 (patch)
treeb2608d90542a9303b7f572b5f7f0254c1c135333
parentcb6f24bc4fde09815170578da51f91de0c0121ed (diff)
downloadorg.eclipse.mylyn.docs.vex-c12b47e54cbccb10476a28788670e3ef6cb71a08.tar.gz
org.eclipse.mylyn.docs.vex-c12b47e54cbccb10476a28788670e3ef6cb71a08.tar.xz
org.eclipse.mylyn.docs.vex-c12b47e54cbccb10476a28788670e3ef6cb71a08.zip
force layout of the modified box, reconcile the ancestors
Signed-off-by: Florian Thienel <florian@thienel.org>
-rw-r--r--org.eclipse.vex.core/src/org/eclipse/vex/core/internal/widget/BoxView.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/widget/BoxView.java b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/widget/BoxView.java
index 7cada9be..a55acb23 100644
--- a/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/widget/BoxView.java
+++ b/org.eclipse.vex.core/src/org/eclipse/vex/core/internal/widget/BoxView.java
@@ -106,7 +106,6 @@ public class BoxView {
cursor.reconcile(graphics);
reconcileViewPort();
}
-
};
}
@@ -121,8 +120,10 @@ public class BoxView {
}
private static void reconcileBoxLayout(final Graphics graphics, final IBox box) {
+ box.layout(graphics);
+
final LinkedList<IBox> invalidatedBoxes = new LinkedList<IBox>();
- invalidatedBoxes.add(box);
+ invalidatedBoxes.add(getParent(box));
while (!invalidatedBoxes.isEmpty()) {
final IBox invalidatedBox = invalidatedBoxes.pollFirst();

Back to the top