// In case user moved the dialog off the screen
bounds = bounds.attemptToMoveInto(screen, FailureMode.NO_CHANGE);
// Now avoid the selected word
move(bounds.avoidBounds(boundsToAvoid_, screen), true);
}
}
@Override
protected void positionAndShowDialog(final Command onCompleted)