anchor.diff:      FVScrollBar.Max         := RowCount-VisibleLines;
       FVScrollBar.Position    := FFirstRow;
       FVScrollBar.RepaintSlider;
  -  end;
  -  
  -  if FHScrollBar.Visible then
  -  begin
  -    Dec(VHeight, FHScrollBar.Height);
  +    FVScrollBar.Top     := 2;
  +    FVScrollBar.Left    := Width - FVScrollBar.Width - 2;
  +    FVScrollBar.Height  := VHeight;
  +  end
  +  else
  +  begin
  +    FVScrollBar.Visible := false;
  +    if Vfits then
  +      FFirstRow := 0;
  +    // if vertical doesn't fit and no scrollbar, do not change firstrow
  +  end;
  +
  +  if showH then
  +  begin
  +    FHScrollBar.Visible := true;
       FHScrollBar.Min         := 0;
       if go_SmoothScroll in FOptions then
       begin
  
positive.code:         end;
    end;
  
    if showH then
      FHScrollBar.Visible := true
    else
    begin
      FHScrollBar.Visible := false;
      if Hfits then
      begin
        FFirstCol := 0;
        FXOffset := 0;
      end;
      // if horizontal doesn't fit and no scrollbar, do not change firstcol/xoffset
    end;
  
    if showV then
      FVScrollBar.Visible := true
    else
    begin
      FVScrollBar.Visible := false;
      if Vfits then
        FFirstRow := 0;
      // if vertical doesn't fit and no scrollbar, do not change firstrow
    end;
  
    if FVScrollBar.Visible then
    begin
      Dec(HWidth, FVScrollBar.Width);
      FVScrollBar.Min         := 0;
      if RowCount > 0 then
        FVScrollBar.SliderSize := VisibleLines / RowCount
  
negative.code:       FHScrollBar.SliderSize  := 1 / ColumnCount;
      end;
      FHScrollBar.RepaintSlider;
      FHScrollBar.Top     := Height -FHScrollBar.Height - 2;
      FHScrollBar.Left    := 2;
      FHScrollBar.Width   := HWidth;
    end
    else
    begin
      FHScrollBar.Visible := false;
      if Hfits then
      begin
        FFirstCol := 0;
        FXOffset := 0;
      end;
      // if horizontal doesn't fit and no scrollbar, do not change firstcol/xoffset
    end;
  
    FVScrollBar.UpdateWindowPosition;
    FHScrollBar.UpdateWindowPosition;
  