File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
package/pheno_ui/lib/widgets Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -69,15 +69,15 @@ class FigmaFrameLayoutNone extends MultiChildLayoutDelegate {
6969 var x = switch (child.dimensions! .constraints.horizontal) {
7070 FigmaDimensionsConstraintType .min => left,
7171 FigmaDimensionsConstraintType .max => size.width - right - width,
72- FigmaDimensionsConstraintType .center => (left + child.dimensions! .width * 0.5 ) * widthScale - width * 0.5 ,
72+ FigmaDimensionsConstraintType .center => size.width * 0.5 + (left + child.dimensions! .width * 0.5 ) - dimensions.width * 0.5 - width * 0.5 ,
7373 FigmaDimensionsConstraintType .stretch => min (left, size.width - right),
7474 FigmaDimensionsConstraintType .scale => left * widthScale,
7575 };
7676
7777 var y = switch (child.dimensions! .constraints.vertical) {
7878 FigmaDimensionsConstraintType .min => top,
7979 FigmaDimensionsConstraintType .max => size.height - bottom - height,
80- FigmaDimensionsConstraintType .center => (top + child.dimensions! .height * 0.5 ) * heightScale - height * 0.5 ,
80+ FigmaDimensionsConstraintType .center => size.height * 0.5 + (top + child.dimensions! .height * 0.5 ) - dimensions.height * 0.5 - height * 0.5 ,
8181 FigmaDimensionsConstraintType .stretch => min (top, size.height - bottom),
8282 FigmaDimensionsConstraintType .scale => top * heightScale,
8383 };
You can’t perform that action at this time.
0 commit comments