Where's my brown paper bag?

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2011-09-08 08:21:36 +02:00
parent f3f01b82d9
commit ff646a361a
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ end
--- Draw the given textbox on the given cairo context in the given geometry --- Draw the given textbox on the given cairo context in the given geometry
function draw(box, wibox, cr, width, height) function draw(box, wibox, cr, width, height)
layout_update(cr, box._layout) layout_update(cr, box._layout)
local ink, logical = layout:get_pixel_extents() local ink, logical = box._layout:get_pixel_extents()
local offset = 0 local offset = 0
if box._valign == "center" then if box._valign == "center" then
offset = (height - logical.height) / 2 offset = (height - logical.height) / 2