Skip to content

Commit 92d46b7

Browse files
committed
FormItem: fix invalidating when content resizes during measurement (it should have been ignored) (closes #197) (closes #198)
1 parent 7d81a47 commit 92d46b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/feathers/controls/FormItem.hx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -889,6 +889,8 @@ class FormItem extends FeathersControl implements ITextControl implements IFocus
889889
}
890890
}
891891
}
892+
var oldIgnoreContentResize = this._ignoreContentResize;
893+
this._ignoreContentResize = true;
892894
if (this.horizontalAlign == JUSTIFY || this.verticalAlign == JUSTIFY) {
893895
var justifyWidth:Null<Float> = null;
894896
var justifyHeight:Null<Float> = null;
@@ -911,8 +913,6 @@ class FormItem extends FeathersControl implements ITextControl implements IFocus
911913
} else {
912914
this._contentMeasurements.restore(this._currentContent);
913915
}
914-
var oldIgnoreContentResize = this._ignoreContentResize;
915-
this._ignoreContentResize = true;
916916
if ((this._currentContent is IValidating)) {
917917
(cast this._currentContent : IValidating).validateNow();
918918
}

0 commit comments

Comments
 (0)