textbox: extents() honors user-set width
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
1060470b3f
commit
6cf9f509c5
|
@ -116,6 +116,9 @@ textbox_extents(lua_State *L, widget_t *widget)
|
|||
geometry.width += d->margin.left + d->margin.left;
|
||||
geometry.height += d->margin.bottom + d->margin.top;
|
||||
|
||||
if(d->width)
|
||||
geometry.width = d->width;
|
||||
|
||||
if(d->bg_image)
|
||||
{
|
||||
int bgi_height = image_getheight(d->bg_image);
|
||||
|
|
Loading…
Reference in New Issue