unify/unify — Issue #19: Label.setValue() does not resize the widget to the new content
Author: mojoaxel
Created: 2011-11-15 09:25:37+00:00
State: open

If a *unify.ui.basic.Label* is created with an empty value string and the value is set afterwards wit *setValue* the width of the widget is not updated.

```js
var label = new unify.ui.basic.Label("");
```

Later in time:

```js
label.setValue("I'm not insane, my mother had me tested!");
```

A workaround that could be used at the moment:

```js
label.set({
value: "I'm not insane, my mother had me tested!",
width: 300 //dirty!
});
```