From 9042d0976085d9d418df4a03884d745abab9dd98 Mon Sep 17 00:00:00 2001 From: guy Date: Thu, 18 Feb 2021 21:55:55 +0800 Subject: [PATCH] bugfix --- src/core/wrapper/layout/flex/flex.center.js | 2 ++ src/core/wrapper/layout/flex/flex.horizontal.center.js | 3 ++- src/core/wrapper/layout/flex/flex.vertical.center.js | 3 ++- src/core/wrapper/layout/flex/wrapper/flex.wrapper.center.js | 2 ++ .../layout/flex/wrapper/flex.wrapper.horizontal.center.js | 3 ++- .../layout/flex/wrapper/flex.wrapper.vertical.center.js | 3 ++- 6 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/core/wrapper/layout/flex/flex.center.js b/src/core/wrapper/layout/flex/flex.center.js index 99859c75d2..6f2856201b 100644 --- a/src/core/wrapper/layout/flex/flex.center.js +++ b/src/core/wrapper/layout/flex/flex.center.js @@ -28,6 +28,8 @@ BI.FlexCenterLayout = BI.inherit(BI.Layout, { }, horizontalAlign: o.horizontalAlign, verticalAlign: o.verticalAlign, + columnSize: o.columnSize, + rowSize: o.rowSize, scrollx: o.scrollx, scrolly: o.scrolly, scrollable: o.scrollable, diff --git a/src/core/wrapper/layout/flex/flex.horizontal.center.js b/src/core/wrapper/layout/flex/flex.horizontal.center.js index 6639e46de1..a58c5e6a6c 100644 --- a/src/core/wrapper/layout/flex/flex.horizontal.center.js +++ b/src/core/wrapper/layout/flex/flex.horizontal.center.js @@ -28,6 +28,7 @@ BI.FlexHorizontalCenter = BI.inherit(BI.Layout, { }, horizontalAlign: BI.HorizontalAlign.Center, verticalAlign: o.verticalAlign, + columnSize: o.columnSize, rowSize: o.rowSize, scrollx: o.scrollx, scrolly: o.scrolly, @@ -53,4 +54,4 @@ BI.FlexHorizontalCenter = BI.inherit(BI.Layout, { } }); BI.shortcut("bi.flex_horizontal_adapt", BI.FlexHorizontalCenter); -BI.shortcut("bi.flex_horizontal_center_adapt", BI.FlexHorizontalCenter); \ No newline at end of file +BI.shortcut("bi.flex_horizontal_center_adapt", BI.FlexHorizontalCenter); diff --git a/src/core/wrapper/layout/flex/flex.vertical.center.js b/src/core/wrapper/layout/flex/flex.vertical.center.js index a87ad2da70..b037f01628 100644 --- a/src/core/wrapper/layout/flex/flex.vertical.center.js +++ b/src/core/wrapper/layout/flex/flex.vertical.center.js @@ -30,6 +30,7 @@ BI.FlexVerticalCenter = BI.inherit(BI.Layout, { verticalAlign: BI.VerticalAlign.Middle, horizontalAlign: o.horizontalAlign, columnSize: o.columnSize, + rowSize: o.rowSize, scrollx: o.scrollx, scrolly: o.scrolly, scrollable: o.scrollable, @@ -54,4 +55,4 @@ BI.FlexVerticalCenter = BI.inherit(BI.Layout, { } }); BI.shortcut("bi.flex_vertical_adapt", BI.FlexVerticalCenter); -BI.shortcut("bi.flex_vertical_center_adapt", BI.FlexVerticalCenter); \ No newline at end of file +BI.shortcut("bi.flex_vertical_center_adapt", BI.FlexVerticalCenter); diff --git a/src/core/wrapper/layout/flex/wrapper/flex.wrapper.center.js b/src/core/wrapper/layout/flex/wrapper/flex.wrapper.center.js index bbe7d79c02..44d0b78eb2 100644 --- a/src/core/wrapper/layout/flex/wrapper/flex.wrapper.center.js +++ b/src/core/wrapper/layout/flex/wrapper/flex.wrapper.center.js @@ -31,6 +31,8 @@ BI.FlexWrapperCenterLayout = BI.inherit(BI.Layout, { }, horizontalAlign: o.horizontalAlign, verticalAlign: o.verticalAlign, + columnSize: o.columnSize, + rowSize: o.rowSize, scrollx: o.scrollx, scrolly: o.scrolly, scrollable: o.scrollable, diff --git a/src/core/wrapper/layout/flex/wrapper/flex.wrapper.horizontal.center.js b/src/core/wrapper/layout/flex/wrapper/flex.wrapper.horizontal.center.js index 0f54ab6cfa..dded39a4ff 100644 --- a/src/core/wrapper/layout/flex/wrapper/flex.wrapper.horizontal.center.js +++ b/src/core/wrapper/layout/flex/wrapper/flex.wrapper.horizontal.center.js @@ -30,6 +30,7 @@ BI.FlexWrapperHorizontalCenter = BI.inherit(BI.Layout, { }, horizontalAlign: BI.HorizontalAlign.Center, verticalAlign: o.verticalAlign, + columnSize: o.columnSize, rowSize: o.rowSize, scrollx: o.scrollx, scrolly: o.scrolly, @@ -51,4 +52,4 @@ BI.FlexWrapperHorizontalCenter = BI.inherit(BI.Layout, { } }); BI.shortcut("bi.flex_scrollable_horizontal_adapt", BI.FlexWrapperHorizontalCenter); -BI.shortcut("bi.flex_scrollable_horizontal_center_adapt", BI.FlexWrapperHorizontalCenter); \ No newline at end of file +BI.shortcut("bi.flex_scrollable_horizontal_center_adapt", BI.FlexWrapperHorizontalCenter); diff --git a/src/core/wrapper/layout/flex/wrapper/flex.wrapper.vertical.center.js b/src/core/wrapper/layout/flex/wrapper/flex.wrapper.vertical.center.js index b572b3088d..ebc8406964 100644 --- a/src/core/wrapper/layout/flex/wrapper/flex.wrapper.vertical.center.js +++ b/src/core/wrapper/layout/flex/wrapper/flex.wrapper.vertical.center.js @@ -31,6 +31,7 @@ BI.FlexWrapperVerticalCenter = BI.inherit(BI.Layout, { verticalAlign: BI.VerticalAlign.Middle, horizontalAlign: o.horizontalAlign, columnSize: o.columnSize, + rowSize: o.rowSize, scrollx: o.scrollx, scrolly: o.scrolly, scrollable: o.scrollable, @@ -51,4 +52,4 @@ BI.FlexWrapperVerticalCenter = BI.inherit(BI.Layout, { } }); BI.shortcut("bi.flex_scrollable_vertical_adapt", BI.FlexWrapperVerticalCenter); -BI.shortcut("bi.flex_scrollable_vertical_center_adapt", BI.FlexWrapperVerticalCenter); \ No newline at end of file +BI.shortcut("bi.flex_scrollable_vertical_center_adapt", BI.FlexWrapperVerticalCenter);