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

View file

@ -123,7 +123,7 @@ local function get_offset(screen, position, idx, width, height)
if position:match("top") then
v.y = ws.y + config.padding + existing
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
-- if positioned outside workarea, destroy oldest popup and recalculate