Преглед на файлове

Merge pull request #76 from darkdarkdragon/proposed2

made Label (<span>) to obey size of container
Nicolas Cannasse преди 10 години
родител
ревизия
c64db6e179
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  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;