Upon starting or opening a project, the ruler is slightly misaligned with the project boundaries

This commit is contained in:
Bane Stojkovic
2022-12-14 19:13:51 +01:00
parent 796c825f02
commit b45ee77472
3 changed files with 7 additions and 20 deletions
@@ -93,6 +93,7 @@ public class CanvasPlugin implements IPlugIn{
scroll.getHorizontalScrollBar().setValue((totalSize.width - visibleSize.width) / 2);
scroll.getVerticalScrollBar().setValue((totalSize.height - visibleSize.height) / 2);
getScrollPane().getViewport().setVisible(true);
updateZeroLocation();
}
@Override
@@ -473,6 +474,8 @@ public class CanvasPlugin implements IPlugIn{
canvasPanel.scrollRectToVisible(visibleRect);
canvasPanel.revalidate();
updateZeroLocation();
}
});
}