textbox: ignore border_width of the wibox
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
c353970500
commit
946231ce74
|
@ -127,7 +127,7 @@ textbox_draw(widget_t *widget, draw_context_t *ctx, area_t geometry, wibox_t *p)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
geometry.y += (geometry.height - textbox_geometry(widget, ctx->phys_screen).height - p->border.width + 1) / 2;
|
geometry.y += (geometry.height - textbox_geometry(widget, ctx->phys_screen).height) / 2;
|
||||||
draw_text(ctx, &d->data, d->ellip, d->wrap, d->align, &d->margin, geometry, &d->extents);
|
draw_text(ctx, &d->data, d->ellip, d->wrap, d->align, &d->margin, geometry, &d->extents);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue