Skip to content

Commit

Permalink
Anchor: allow calling constructor with no args for support in declara…
Browse files Browse the repository at this point in the history
…tive markup
  • Loading branch information
joshtynjala committed Jul 29, 2023
1 parent 32dd151 commit a01aa5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/feathers/layout/AnchorLayout.hx
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ class Anchor extends EventDispatcher {
@since 1.0.0
**/
public function new(value:Float, ?relativeTo:DisplayObject) {
public function new(value:Float = 0.0, ?relativeTo:DisplayObject) {
super();
this._value = value;
this._relativeTo = relativeTo;
Expand Down

0 comments on commit a01aa5a

Please sign in to comment.