[iconbox] Do not draw iconbox if not enough size

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-05-24 09:07:56 +02:00
parent 968a9080c5
commit ca68059b19
1 changed files with 3 additions and 0 deletions

View File

@ -44,6 +44,9 @@ iconbox_draw(widget_node_t *w, statusbar_t *statusbar, int offset,
else
w->area.width = area.width;
if(w->area.width > statusbar->width - used)
return (w->area.width = 0);
w->area.height = statusbar->height;
w->area.x = widget_calculate_offset(statusbar->width,