naughty: bottom positioning has to count border twice

Signed-off-by: koniu <gkusnierz@gmail.com>
This commit is contained in:
koniu 2008-11-23 16:35:45 +00:00 committed by Julien Danjou
parent 61947ec1c8
commit e1762128b7
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ local function get_offset(screen, position, idx, width, height)
if position:match("top") then if position:match("top") then
v.y = ws.y + config.padding + existing v.y = ws.y + config.padding + existing
else else
v.y = ws.y + ws.height - (config.padding + config.border_width + height + existing) v.y = ws.y + ws.height - (config.padding + config.border_width*2 + height + existing)
end end
-- if positioned outside workarea, destroy oldest popup and recalculate -- if positioned outside workarea, destroy oldest popup and recalculate