mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
Upon starting or opening a project, the ruler is slightly misaligned with the project boundaries
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user