Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: FEST-Swing 1.2a2
-
Fix Version/s: FEST-Swing 1.2a4
-
Component/s: Swing
-
Labels:None
-
Number of attachments :
Description
The JSplitPaneDriver does two things in
moveDividerTo(JSplitPane, int location)
1) it simulates moving the divider via mouse drag events
2) it uses the API method splitPane.setDividerLocation(int location)
1) is ok and moves the divider via the DragController, 2) is wrong.
When a user moves the divider via the Mouse, the BasicSplitPaneDivider.DragController is active and realizes
Limitations for the move: e.g. the Controller respects a MinimumSize of the left or right component.
But the split pane API allows via setDividerLocation to override these limitations.
Observed: moveDividerTo can reach divider Locations, that the user can't reach with the mouse.
Expected: the driver should respect the same rules as the user