Skip to content

Commit 5789504

Browse files
committed
Fix crash after pasting text that reduces text area size, Closes #52
1 parent 74c981f commit 5789504

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/cyclops/integratedscripting/client/gui/component/input/WidgetTextArea.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,12 @@ public void setValue(String value) {
155155
textFieldHelper.setCursorToStart();
156156
textFieldHelper.setSelectionPos(textFieldHelper.getCursorPos());
157157
if (this.scrollBar != null) {
158-
this.firstRow = 0;
159158
scrollBar.scrollTo(0);
160159
}
161160
}
162161

163162
public void setValuePassive(String value) {
163+
this.firstRow = 0;
164164
this.value = value;
165165
this.clearDisplayCache();
166166

0 commit comments

Comments
 (0)