naughty: bottom positioning has to count border twice
Signed-off-by: koniu <gkusnierz@gmail.com>
This commit is contained in:
parent
61947ec1c8
commit
e1762128b7
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue