Pārlūkot izejas kodu

Merge pull request #76 from darkdarkdragon/proposed2

made Label (<span>) to obey size of container
Nicolas Cannasse 10 gadi atpakaļ
vecāks
revīzija
c64db6e179
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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;