mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
textbox can be flex-aligned
This commit is contained in:
parent
46b80552c6
commit
86927a9e7e
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue