Comment which may improve widget position

This commit is contained in:
streetturtle 2019-12-12 22:27:43 -05:00
parent 19d8dbf294
commit e8f79dccee
2 changed files with 16 additions and 0 deletions

View File

@ -204,6 +204,14 @@ local function worker(args)
if popup.visible then
popup.visible = not popup.visible
else
--local geo = mouse.current_widget_geometry
--if theme.calendar_placement == 'center' then
-- local x = geo.x + (geo.width / 2) - (popup:geometry().width / 2) -- align two widgets
-- popup:move_next_to({x = x, y = geo.y + 22, width = 0, height = geo.height})
--else
-- popup:move_next_to(geo)
--end
popup:move_next_to(mouse.current_widget_geometry)
end
end)

View File

@ -171,6 +171,14 @@ local function worker(args)
if popup.visible then
popup.visible = not popup.visible
else
--local geo = mouse.current_widget_geometry
--if theme.calendar_placement == 'center' then
-- local x = geo.x + (geo.width / 2) - (popup:geometry().width / 2) -- align two widgets
-- popup:move_next_to({x = x, y = geo.y + 22, width = 0, height = geo.height})
--else
-- popup:move_next_to(geo)
--end
popup:move_next_to(mouse.current_widget_geometry)
end
end)