textview paddings fix

This commit is contained in:
2014-02-04 18:06:41 +04:00
parent 5a743007e2
commit 4651ec154c

View File

@@ -139,8 +139,10 @@ class TextView extends SpriteView implements ITextView<Sprite, TextField> {
var t:String = currentText();
if (t != null) textField.text = t;
if (contentSize && !Std.is(skin, ISize)) {
width = textField.width;
height = textField.height;
width = textField.width + paddings * 2;
height = textField.height + paddings * 2;
textField.x = paddings;
textField.y = paddings;
} else {
if (fill) {
textField.width = width - paddings * 2;