mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
back compatibility
This commit is contained in:
+3
-3
@@ -210,13 +210,13 @@ public class Label extends AbstractComponent<Void> {
|
|||||||
|
|
||||||
@EditableProperty(name = "Vertical alignment")
|
@EditableProperty(name = "Vertical alignment")
|
||||||
public VerticalAlignment getVerticalAlignment() {
|
public VerticalAlignment getVerticalAlignment() {
|
||||||
|
if (verticalAlignment == null) {
|
||||||
|
verticalAlignment = VerticalAlignment.CENTER;
|
||||||
|
}
|
||||||
return verticalAlignment;
|
return verticalAlignment;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setVerticalAlignment(VerticalAlignment verticalAlignment) {
|
public void setVerticalAlignment(VerticalAlignment verticalAlignment) {
|
||||||
if (verticalAlignment == null) {
|
|
||||||
verticalAlignment = VerticalAlignment.CENTER;
|
|
||||||
}
|
|
||||||
this.verticalAlignment = verticalAlignment;
|
this.verticalAlignment = verticalAlignment;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user