From fe9d1f44a1c300a5b9fbab086eebdd41310f53f4 Mon Sep 17 00:00:00 2001 From: Robert Jelic <36573031+NoryiE@users.noreply.github.com> Date: Sat, 17 Jun 2023 23:17:41 +0200 Subject: [PATCH] Update Flexbox.lua Small renaming fix --- Basalt/objects/Flexbox.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Basalt/objects/Flexbox.lua b/Basalt/objects/Flexbox.lua index bae60bd..1f4f6ba 100644 --- a/Basalt/objects/Flexbox.lua +++ b/Basalt/objects/Flexbox.lua @@ -42,9 +42,9 @@ return function(name, basalt) base:addProperty("FlexDirection", {"row", "column"}, "row", nil, function(self, direction) if(direction=="row")then - self:setScrollDirection("horizontal") + base:setDirection("horizontal") elseif(direction=="column")then - self:setScrollDirection("vertical") + base:setDirection("vertical") end end) base:addProperty("Spacing", "number", 1, nil, function(self, spacing) @@ -324,7 +324,7 @@ return function(name, basalt) local function applyLayout(self) sortChildren(self) - if self:getDirection() == "row" then + if self:getFlexDirection() == "row" then for _,v in pairs(sortedChildren)do calculateRow(self, v) end @@ -378,4 +378,4 @@ return function(name, basalt) object.__index = object return setmetatable(object, base) -end \ No newline at end of file +end