From 4651ec154c3be62de08501c232c0bec1181445c6 Mon Sep 17 00:00:00 2001 From: shmyga Date: Tue, 4 Feb 2014 18:06:41 +0400 Subject: [PATCH] textview paddings fix --- haxework/gui/TextView.hx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/haxework/gui/TextView.hx b/haxework/gui/TextView.hx index 8c34604..7b6f867 100755 --- a/haxework/gui/TextView.hx +++ b/haxework/gui/TextView.hx @@ -139,8 +139,10 @@ class TextView extends SpriteView implements ITextView { 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;