Update Flexbox
This commit is contained in:
@@ -76,6 +76,10 @@ return function(name, basalt)
|
|||||||
return spacing
|
return spacing
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
getFlexDirection = function(self)
|
||||||
|
return flexDirection
|
||||||
|
end,
|
||||||
|
|
||||||
setFlexDirection = function(self, direction)
|
setFlexDirection = function(self, direction)
|
||||||
if direction == "row" or direction == "column" then
|
if direction == "row" or direction == "column" then
|
||||||
flexDirection = direction
|
flexDirection = direction
|
||||||
@@ -84,6 +88,10 @@ return function(name, basalt)
|
|||||||
return self
|
return self
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
getJustifyContent = function(self)
|
||||||
|
return justifyContent
|
||||||
|
end,
|
||||||
|
|
||||||
setJustifyContent = function(self, alignment)
|
setJustifyContent = function(self, alignment)
|
||||||
if alignment == "flex-start" or alignment == "flex-end" or alignment == "center" or alignment == "space-between" or alignment == "space-around" then
|
if alignment == "flex-start" or alignment == "flex-end" or alignment == "center" or alignment == "space-between" or alignment == "space-around" then
|
||||||
justifyContent = alignment
|
justifyContent = alignment
|
||||||
@@ -92,6 +100,10 @@ return function(name, basalt)
|
|||||||
return self
|
return self
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
getAlignItems = function(self)
|
||||||
|
return alignItems
|
||||||
|
end,
|
||||||
|
|
||||||
setAlignItems = function(self, alignment)
|
setAlignItems = function(self, alignment)
|
||||||
if alignment == "flex-start" or alignment == "flex-end" or alignment == "center" or alignment == "space-between" or alignment == "space-around" then
|
if alignment == "flex-start" or alignment == "flex-end" or alignment == "center" or alignment == "space-between" or alignment == "space-around" then
|
||||||
alignItems = alignment
|
alignItems = alignment
|
||||||
|
|||||||
Reference in New Issue
Block a user