textview paddings fix
This commit is contained in:
@@ -139,8 +139,10 @@ class TextView extends SpriteView implements ITextView<Sprite, TextField> {
|
|||||||
var t:String = currentText();
|
var t:String = currentText();
|
||||||
if (t != null) textField.text = t;
|
if (t != null) textField.text = t;
|
||||||
if (contentSize && !Std.is(skin, ISize)) {
|
if (contentSize && !Std.is(skin, ISize)) {
|
||||||
width = textField.width;
|
width = textField.width + paddings * 2;
|
||||||
height = textField.height;
|
height = textField.height + paddings * 2;
|
||||||
|
textField.x = paddings;
|
||||||
|
textField.y = paddings;
|
||||||
} else {
|
} else {
|
||||||
if (fill) {
|
if (fill) {
|
||||||
textField.width = width - paddings * 2;
|
textField.width = width - paddings * 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user