Skip to content

Commit

Permalink
#47: whoops, "CANVAS"
Browse files Browse the repository at this point in the history
should never clip.
  • Loading branch information
jbfaden committed Dec 15, 2023
1 parent 3cb5a95 commit ae056b7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dasCore/src/org/das2/graph/DasAnnotation.java
Original file line number Diff line number Diff line change
Expand Up @@ -520,24 +520,24 @@ private Rectangle calcBounds() {
int hmin, hmax;

if ( anchorType==AnchorType.CANVAS || plot==null ) {
hmin= getColumn().getDMinimum();
hmax= getColumn().getDMaximum();
hmin= 0;
hmax= getCanvas().getWidth();
} else {
hmin= plot.getColumn().getDMinimum();
hmax= plot.getColumn().getDMaximum();
}
if ( splitAnchorType ) {
if ( verticalAnchorType==AnchorType.CANVAS || plot==null ) {
vmin= getRow().getDMinimum();
vmax= getRow().getDMaximum();
vmin= 0;
vmax= getCanvas().getHeight();
} else {
vmin= plot.getRow().getDMinimum();
vmax= plot.getRow().getDMaximum();
}
} else {
if ( anchorType==AnchorType.CANVAS || plot==null ) {
vmin= getRow().getDMinimum();
vmax= getRow().getDMaximum();
vmin= 0;
vmax= getCanvas().getHeight();
} else {
vmin= plot.getRow().getDMinimum();
vmax= plot.getRow().getDMaximum();
Expand Down

0 comments on commit ae056b7

Please sign in to comment.