fix(renderer): setting multi-line property
This commit is contained in:
@@ -72,11 +72,13 @@ public class G2DTextfieldControlImpl2 extends G2DBaseControlImpl implements Text
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void setMultiLine(final boolean multiLine) {
|
private void setMultiLine(final boolean multiLine) {
|
||||||
if (this.textComponent != null) {
|
if (this.textComponent == null) {
|
||||||
throw new UnsupportedOperationException("Multiline property is read-only after initial control creation");
|
|
||||||
}
|
|
||||||
this.multiLine = multiLine;
|
this.multiLine = multiLine;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
// throw new UnsupportedOperationException("Multiline property is read-only after initial control creation");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private boolean isReadonly() {
|
private boolean isReadonly() {
|
||||||
return this.readonly;
|
return this.readonly;
|
||||||
|
|||||||
Reference in New Issue
Block a user