Merge pull request #1466 from SiboVG/issue-1465

[#1465] Include xmin in sideview canvas origin calculation
This commit is contained in:
SiboVG 2022-06-20 03:30:32 +02:00 committed by GitHub
commit 501f677b1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -486,7 +486,7 @@ public class RocketFigure extends AbstractScaleFigure {
originLocation_px = new Point(newOriginX, newOriginY);
}else if (currentViewType == RocketPanel.VIEW_TYPE.SideView){
final int newOriginX = mid_x - (subjectWidth / 2);
final int newOriginX = mid_x - (subjectWidth / 2) - (int)(subjectBounds_m.getMinX() * scale);
final int newOriginY = Math.max(getHeight(), subjectHeight + 2*borderThickness_px.height )/ 2;
originLocation_px = new Point(newOriginX, newOriginY);
}