fix second page position
authorDennis Ushakov <dennis.ushakov@gmail.com>
Thu, 3 Sep 2015 06:17:30 +0000 (08:17 +0200)
committerDennis Ushakov <dennis.ushakov@gmail.com>
Thu, 3 Sep 2015 06:22:25 +0000 (08:22 +0200)
xml/openapi/src/com/intellij/xml/breadcrumbs/BreadcrumbsComponent.java

index b2ef1d6b4ba93af90ecbd59da80fa9a1bc0290d4..a3562eb6a5953865df85ab80cfb72b34da79c453 100644 (file)
@@ -293,7 +293,7 @@ public class BreadcrumbsComponent<T extends BreadcrumbsItem> extends JComponent
 
     if (rightmostCrumb != null && screenWidth < width) {
       // add first dummy crumb
-      result.add(result.indexOf(rightmostCrumb) + 2, new DummyCrumb(width - screenWidth));
+      result.add(result.indexOf(rightmostCrumb) + 2, new DummyCrumb(width - screenWidth - forward.getWidth() - 8));
     }
 
     //assert screenWidth < width;