textbox: ignore border_width of the wibox

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-08-20 10:42:47 +02:00
parent c353970500
commit 946231ce74
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}