From 946231ce74d8e312817efd41d2f6491f6c313dad Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 20 Aug 2009 10:42:47 +0200 Subject: [PATCH] textbox: ignore border_width of the wibox Signed-off-by: Julien Danjou --- widgets/textbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widgets/textbox.c b/widgets/textbox.c index a734a2f4..04c2480f 100644 --- a/widgets/textbox.c +++ b/widgets/textbox.c @@ -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); }