scrollOffset = offset;
horizontalVisibility.setValue( Math.min(horizontalVisibility.getMaximum() - horizontalVisibility.getExtent(), offset));
  public void setScrollOffset(int offset)  {    //FIXME: this should actualy scroll the field if needed    scrollOffset = offset;  }