mirror of
https://gitlab.com/luk3yx/minetest-flow.git
synced 2025-08-17 05:05:53 +02:00
Make expand work properly on ScrollableVBox
This commit is contained in:
parent
43c2fc0f78
commit
fa574dcf41
4
init.lua
4
init.lua
@ -854,6 +854,7 @@ function gui.ScrollableVBox(def)
|
|||||||
local scrollbar_name = "_scrollbar-" .. assert(
|
local scrollbar_name = "_scrollbar-" .. assert(
|
||||||
def.name, "Please provide a name for all ScrollableVBox elements!"
|
def.name, "Please provide a name for all ScrollableVBox elements!"
|
||||||
)
|
)
|
||||||
|
local align_h, align_v, expand = def.align_h, def.align_v, def.expand
|
||||||
|
|
||||||
def.type = "vbox"
|
def.type = "vbox"
|
||||||
def.x, def.y = 0, 0
|
def.x, def.y = 0, 0
|
||||||
@ -864,6 +865,9 @@ function gui.ScrollableVBox(def)
|
|||||||
h = h or min(inner_h, 5)
|
h = h or min(inner_h, 5)
|
||||||
|
|
||||||
return gui.HBox {
|
return gui.HBox {
|
||||||
|
align_h = align_h,
|
||||||
|
align_v = align_v,
|
||||||
|
expand = expand,
|
||||||
{
|
{
|
||||||
type = "scroll_container",
|
type = "scroll_container",
|
||||||
expand = true,
|
expand = true,
|
||||||
|
Loading…
Reference in New Issue
Block a user