bug fixes related to code generation
This commit is contained in:
@@ -570,7 +570,7 @@ class Widget extends React.Component {
|
||||
}
|
||||
|
||||
setLayout(value) {
|
||||
const { layout, direction, grid = { rows: 1, cols: 1 }, gap = 10 } = value
|
||||
const { layout, direction, grid = { rows: 1, cols: 1 }, gap = 10, align } = value
|
||||
|
||||
// console.log("layout value: ", value)
|
||||
// FIXME: In grid layout the layout doesn't adapt to the size of the child if resized
|
||||
@@ -586,6 +586,16 @@ class Widget extends React.Component {
|
||||
// gridAutoCols: 'minmax(100px, auto)', // Cols with minimum height of 100px, and grow to fit content
|
||||
}
|
||||
|
||||
if (align === "start"){
|
||||
widgetStyle["alignItems"] = "flex-start"
|
||||
}else if (align === "center"){
|
||||
widgetStyle["alignItems"] = "center"
|
||||
}else if (align === "end"){
|
||||
widgetStyle["alignItems"] = "flex-end"
|
||||
}else{
|
||||
widgetStyle["alignItems"] = "unset"
|
||||
}
|
||||
|
||||
this.updateState({
|
||||
widgetInnerStyling: widgetStyle
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user