瀏覽代碼

Ignore inline interactive sizes for HtmlText.getBoundsRec

Leonardo Jeanteur 1 年之前
父節點
當前提交
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 )