Kaynağa Gözat

made Label (<span>) to obey size of container

Ivan Tivonenko 11 yıl önce
ebeveyn
işleme
35063ef58c
1 değiştirilmiş dosya ile 1 ekleme ve 0 silme
  1. 1 0
      h2d/comp/Label.hx

+ 1 - 0
h2d/comp/Label.hx

@@ -23,6 +23,7 @@ class Label extends Component {
 
 	override function resize( ctx : Context ) {
 		if( ctx.measure ) {
+            tf.maxWidth = ctx.maxWidth;
 			tf.font = getFont();
 			tf.textColor = style.color;
 			tf.text = text;