core/menusystem: fix same glitch in floxbox and listbox
This commit is contained in:
parent
caa0e86e12
commit
e3cc372340
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ function FlowBox:new(menusystem, name, x, y, w, h, slots_hor, slots_vert)
|
|||
-- soit un multiple du nombre de slot et de leur dimensions
|
||||
end
|
||||
|
||||
function Menu:updateWidgetSize()
|
||||
function FlowBox:updateWidgetSize()
|
||||
self.widget.h = math.floor( self.h / slots_vert )
|
||||
self.widget.w = math.floor( self.w / slots_hor )
|
||||
end
|
||||
|
|
|
@ -11,7 +11,7 @@ function ListBox:new(menusystem, name, x, y, w, h, slots)
|
|||
-- soit un multiple du nombre de slot et de leur hauteur
|
||||
end
|
||||
|
||||
function Menu:updateWidgetSize()
|
||||
function ListBox:updateWidgetSize()
|
||||
self.widget.h = math.floor( self.h / slots )
|
||||
self.widget.w = self.w
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue