Explorar o código

Ignore inline interactive sizes for HtmlText.getBoundsRec

Leonardo Jeanteur %!s(int64=2) %!d(string=hai) anos
pai
achega
dada5c6947
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 )