Update menu offsets when dimensions change

This commit is contained in:
Christoph Heinrich
2022-08-17 03:30:27 +02:00
committed by Tomas Klaen
parent 81b5baaa43
commit 52aa396087

View File

@@ -1080,6 +1080,9 @@ function Menu:open(items, open_item, opts)
this.bx = round(this.ax + this.width)
this.by = round(this.ay + this.height)
-- Update offsets for new sizes
this:set_offset_x(this.offset_x)
if this.parent_menu then
this.parent_menu:on_display_change()
end