[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gambas-bugtracker] Bug #2943: GTK TextArea bottom scrollbar obscures the last line


http://gambaswiki.org/bugtracker/edit?object=BUG.2943&from=L21haW4-

Comment #5 by Bruce STEERS:

Aah i see.
My dirty fix was to add a LF if conditions are lower scroll is visible and text does not end in LF

  Dim r As Rect = taData.Font.TextSize(sText)
  If Component.IsLoaded("gb.gtk3") And If Right(sText) <> "\n" And If r.W > taData.W Then sText &= "\n"


Thank you for looking


----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----