Commit 8a54603e authored by Martin Eisenmann's avatar Martin Eisenmann
Browse files

YELLOW

Issue-Ref: 4016
Issue-Url: https://af3-developer.fortiss.org/issues/4016

Signed-off-by: Martin Eisenmann's avatarMartin Eisenmann <eisenmann@fortiss.org>
parent 092a2e24
......@@ -2,7 +2,7 @@ AbstractObjectToDrawFX.java 81b5892711f72c44f775b01b87260b89c685e77b YELLOW
LabelToDrawFX.java 583cb93083db0ee96a94c5358858d35f0f9c5946 YELLOW
LineToDrawFX.java 79e2fe830196fb2a301b47aca668e27cdf4f3abc YELLOW
ScheduleModelElementToDrawFX.java 7863a2dafd0f1e3f8595fda035cb4ed31758224a YELLOW
ScheduleViewCanvasFX.java c2f04abc9a13959219a9efa5a1a2a28e016687e1 YELLOW
ScheduleViewCanvasFX.java 6aa5eb04629fc17ee4318fbe0221f6a7c88cc0e6 YELLOW
ScheduleViewColorsFX.java 1574aa027bd79b4f1f496e4c34413e77d45d9134 YELLOW
ScheduleViewCompositeFX.java 6599300349d3d42cb60fe006b053ac3d8e4c12b0 YELLOW
ScheduleViewFX.java 37b3ce2c899bb4cc7a04dbb5204320a8d50a8cd0 YELLOW
......
......@@ -194,11 +194,12 @@ public class ScheduleViewCanvasFX {
int diagramSelectionX =
scheduleLayoutData.scaleLengthObjectSpaceToDiagramSpaceX(objectSelectionX) +
DIAGRAM_OFFSET_X + DIAGRAM_OFFSET_LABEL;
scrollBar.setValue(diagramSelectionX);
scrollBar.setValue(diagramSelectionX + scrollBar.getVisibleAmount() / 2);
// diagramSelectionX is the diagram coordinate of the left-most visible point. Hence, set
// the origin to -diagramSelectionX.
scheduleLayoutData.getDiagramOrigin().x = -diagramSelectionX;
scheduleLayoutData.getDiagramOrigin().x =
-(int)min(diagramSelectionX + scrollBar.getVisibleAmount() / 2, scrollBar.getMax());
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment