FEST

JSplitPaneDriver does not respect the limitations of the BasicSplitPaneDivider.DragController

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major 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 :
    0

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

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: