From 86927a9e7e79f70b420ae1322dbc10fef00572cf Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 28 Feb 2008 16:19:38 +0100 Subject: [PATCH] textbox can be flex-aligned --- widgets/textbox.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/widgets/textbox.c b/widgets/textbox.c index 2ff82e83d..1f7c4df5c 100644 --- a/widgets/textbox.c +++ b/widgets/textbox.c @@ -41,6 +41,8 @@ textbox_draw(Widget *widget, DrawCtx *ctx, int offset, int used) if(d->width) widget->area.width = d->width; + else if(widget->alignment == AlignFlex) + widget->area.width = widget->statusbar->width - used; else widget->area.width = MIN(draw_textwidth(ctx->display, widget->font, d->text), widget->statusbar->width - used);