Update menu offsets when dimensions change
This commit is contained in:

committed by
Tomas Klaen

parent
81b5baaa43
commit
52aa396087
3
uosc.lua
3
uosc.lua
@@ -1080,6 +1080,9 @@ function Menu:open(items, open_item, opts)
|
|||||||
this.bx = round(this.ax + this.width)
|
this.bx = round(this.ax + this.width)
|
||||||
this.by = round(this.ay + this.height)
|
this.by = round(this.ay + this.height)
|
||||||
|
|
||||||
|
-- Update offsets for new sizes
|
||||||
|
this:set_offset_x(this.offset_x)
|
||||||
|
|
||||||
if this.parent_menu then
|
if this.parent_menu then
|
||||||
this.parent_menu:on_display_change()
|
this.parent_menu:on_display_change()
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user