2
0
Эх сурвалжийг харах

Ignore inline interactive sizes for HtmlText.getBoundsRec

Leonardo Jeanteur 1 жил өмнө
parent
commit
dada5c6947
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      h2d/HtmlText.hx

+ 1 - 1
h2d/HtmlText.hx

@@ -851,7 +851,7 @@ class HtmlText extends Text {
 	override function getBoundsRec( relativeTo : Object, out : h2d.col.Bounds, forSize : Bool ) {
 		if( forSize )
 			for( i in elements )
-				if( hxd.impl.Api.isOfType(i,h2d.Bitmap) )
+				if( hxd.impl.Api.isOfType(i,h2d.Bitmap) || hxd.impl.Api.isOfType(i,h2d.Interactive) )
 					i.visible = false;
 		super.getBoundsRec(relativeTo, out, forSize);
 		if( forSize )