diff --git a/src/core/wrapper/layout/adapt/float.horizontal.js b/src/core/wrapper/layout/adapt/float.horizontal.js index 77667c0ac5..529855411e 100644 --- a/src/core/wrapper/layout/adapt/float.horizontal.js +++ b/src/core/wrapper/layout/adapt/float.horizontal.js @@ -1,5 +1,5 @@ /** * 浮动的水平居中布局 */ -BI.FloatHorizontalLayout = BI.Layout; +BI.FloatHorizontalLayout = BI.inherit(BI.Layout); BI.shortcut("bi.horizontal_float", BI.FloatHorizontalLayout); diff --git a/src/core/wrapper/layout/layout.horizontal.js b/src/core/wrapper/layout/layout.horizontal.js index e7997c682a..a2989eff32 100644 --- a/src/core/wrapper/layout/layout.horizontal.js +++ b/src/core/wrapper/layout/layout.horizontal.js @@ -3,5 +3,5 @@ * @class BI.HorizontalLayout * @extends BI.Layout */ -BI.HorizontalLayout = BI.Layout; +BI.HorizontalLayout = BI.inherit(BI.Layout); BI.shortcut("bi.horizontal", BI.HorizontalLayout);