Closed arkarsg closed 1 year ago
Hello I have looked through your code and I think the only issue is that the initialise
method is supposed to be spelled as initialize
(Z instead of S). This is in line 35 of MainWindow
. I was able to get the auto scrolling to work by changing that.
Interesting! It works now. Thank you.
I have been making some minor UI changes for GUI and I faced the following issue.
Issue
When there are long chunks of text displayed on the GUI,
ScrollPane
does not snap to the bottom.Before
After
The after screenshot is immediately after I have typed in another command, as you can see from the
Image
ofuserDialog
. Note: scroll bar was set to not show in this example.Expected Behaviour
For
ScrollPane
to immediately snap to the bottom ofDukeDialog
, so that user does not have to scroll down after every response.What I have tried
In
MainWindow
, the following is present, as per the tutorial:Following some posts on StackOverflow, I have also tried hardcoding the height property to
1.0d
but this does not work either. I have also tried changingmax_height
andpref_height
attributes via sceneBuilder.MainWindow FXML