Skip to content

Commit

Permalink
[#553] Add fix for scroll bars appearing when not needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkcoding7 authored and prmr committed Jul 16, 2024
1 parent 4a271d1 commit 31b29cc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/org/jetuml/gui/PropertySheet.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import javafx.scene.control.TextArea;
import javafx.scene.control.TextField;
import javafx.scene.control.TextInputControl;
import javafx.scene.control.ScrollPane.ScrollBarPolicy;
import javafx.scene.input.KeyCode;
import javafx.scene.input.KeyCodeCombination;
import javafx.scene.input.KeyCombination;
Expand Down Expand Up @@ -192,7 +193,11 @@ private Control createExtendedStringEditor(Property pProperty)
aListener.propertyChanged();
});

return new ScrollPane(textArea);
// Necessary to fix scroll bar problem. See issue #553.
ScrollPane sp = new ScrollPane(textArea);
sp.setFitToHeight(true);
sp.setFitToWidth(true);
return sp;
}

/*
Expand Down

0 comments on commit 31b29cc

Please sign in to comment.