Where's my brown paper bag?
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
f3f01b82d9
commit
ff646a361a
|
@ -49,7 +49,7 @@ end
|
|||
--- Draw the given textbox on the given cairo context in the given geometry
|
||||
function draw(box, wibox, cr, width, height)
|
||||
layout_update(cr, box._layout)
|
||||
local ink, logical = layout:get_pixel_extents()
|
||||
local ink, logical = box._layout:get_pixel_extents()
|
||||
local offset = 0
|
||||
if box._valign == "center" then
|
||||
offset = (height - logical.height) / 2
|
||||
|
|
Loading…
Reference in New Issue