Merge pull request #1466 from SiboVG/issue-1465
[#1465] Include xmin in sideview canvas origin calculation
This commit is contained in:
commit
501f677b1e
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user