Selaa lähdekoodia

fixed properties index issues with interactive/background

Nicolas Cannasse 6 vuotta sitten
vanhempi
commit
7a88957df5
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      h2d/Flow.hx

+ 2 - 2
h2d/Flow.hx

@@ -565,7 +565,7 @@ class Flow extends Object {
 				addChildAt(interactive,0);
 				addChildAt(interactive,0);
 				this.interactive = interactive;
 				this.interactive = interactive;
 				interactive.cursor = Default;
 				interactive.cursor = Default;
-				properties[properties.length - 1].isAbsolute = true;
+				getProperties(interactive).isAbsolute = true;
 				if( !needReflow ) {
 				if( !needReflow ) {
 					interactive.width = calculatedWidth;
 					interactive.width = calculatedWidth;
 					interactive.height = calculatedHeight;
 					interactive.height = calculatedHeight;
@@ -587,7 +587,7 @@ class Flow extends Object {
 			if( background == null ) {
 			if( background == null ) {
 				var background = new h2d.ScaleGrid(t, borderWidth, borderHeight);
 				var background = new h2d.ScaleGrid(t, borderWidth, borderHeight);
 				addChildAt(background, 0);
 				addChildAt(background, 0);
-				properties[0].isAbsolute = true;
+				getProperties(background).isAbsolute = true;
 				this.background = background;
 				this.background = background;
 				if( !needReflow ) {
 				if( !needReflow ) {
 					background.width = Math.ceil(calculatedWidth);
 					background.width = Math.ceil(calculatedWidth);