textbox: extents() honors user-set width

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-08-27 15:39:34 +02:00
parent 1060470b3f
commit 6cf9f509c5
1 changed files with 3 additions and 0 deletions

View File

@ -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);