-
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
To address the "Text is partially hidden, there should already be a need for a scrollbar" issue (2nd image above), try wrapping the StyleClassedTextArea in a For the actual scrolling part, try the following: chapterContent.addEventFilter( ScrollEvent.ANY, SE ->
{
ScrollEvent.fireEvent( chapterContentContainer, SE );
SE.consume();
} ); |
Beta Was this translation helpful? Give feedback.
-
That's great.
However I've had another look and think I've found a better way than using Group. |
Beta Was this translation helpful? Give feedback.
-
Alright, I seem to have solved the issue, thanks to @Jugen . Indeed from #1240 (comment) using Somehow the rest of the problem came from the |
Beta Was this translation helpful? Give feedback.
That's great.
Group
is unique in that it doesn't auto size it's children. The idea was to isolate the sizing of the text area from its parent containers so that the scrollbar can work properly. So, in order for this to work you'd need to manually specify the text area's dimensions.However I've had another look and think I've found a better way than using Group.
Instead I suggest trying
chapterContent.setAutoHeight( true );
.