ncannasse 8 rokov pred
rodič
commit
fe2ada1607
1 zmenil súbory, kde vykonal 11 pridanie a 0 odobranie
  1. 11 0
      h2d/Flow.hx

+ 11 - 0
h2d/Flow.hx

@@ -42,6 +42,11 @@ class FlowProperties {
 		this.elt = elt;
 	}
 
+	public inline function align(vertical, horizontal) {
+		this.verticalAlign = vertical;
+		this.horizontalAlign = horizontal;
+	}
+
 	function set_isAbsolute(a) {
 		if( a ) @:privateAccess elt.constraintSize( -1, -1); // remove constraint
 		return isAbsolute = a;
@@ -400,6 +405,12 @@ class Flow extends Sprite {
 			properties.splice(index, 1);
 			s.constraintSize( -1, -1); // remove constraint
 		}
+		if( s != null ) {
+			if( s == background )
+				backgroundTile = null;
+			if( s == interactive )
+				enableInteractive = false;
+		}
 	}
 
 	override function sync(ctx:RenderContext) {