diff --git a/src/third/jquery.mousewheel.js b/src/core/platform/web/jquery/jquery.mousewheel.js similarity index 100% rename from src/third/jquery.mousewheel.js rename to src/core/platform/web/jquery/jquery.mousewheel.js diff --git a/src/core/wrapper/layout/adapt/adapt.horizontal.js b/src/core/wrapper/layout/adapt/adapt.horizontal.js index fb98bc930..8795a3cd4 100644 --- a/src/core/wrapper/layout/adapt/adapt.horizontal.js +++ b/src/core/wrapper/layout/adapt/adapt.horizontal.js @@ -8,6 +8,7 @@ BI.HorizontalAdaptLayout = BI.inherit(BI.Layout, { return BI.extend(BI.HorizontalAdaptLayout.superclass.props.apply(this, arguments), { baseCls: "bi-h-a", verticalAlign: BI.VerticalAlign.Top, + horizontalAlign: BI.HorizontalAlign.Center, columnSize: [], scrollx: false, hgap: 0, @@ -24,7 +25,7 @@ BI.HorizontalAdaptLayout = BI.inherit(BI.Layout, { return { type: "bi.horizontal", verticalAlign: o.verticalAlign, - horizontalAlign: BI.HorizontalAlign.Center, + horizontalAlign: o.horizontalAlign, columnSize: o.columnSize, items: o.items, scrollx: o.scrollx, diff --git a/src/core/wrapper/layout/adapt/adapt.table.js b/src/core/wrapper/layout/adapt/adapt.table.js index baa065655..999eef248 100644 --- a/src/core/wrapper/layout/adapt/adapt.table.js +++ b/src/core/wrapper/layout/adapt/adapt.table.js @@ -26,7 +26,7 @@ BI.TableAdaptLayout = BI.inherit(BI.Layout, { position: "relative", display: "table", width: (o.horizontalAlign === BI.HorizontalAlign.Center || o.horizontalAlign === BI.HorizontalAlign.Stretch) ? "100%" : "auto", - height: (o.verticalAlign === BI.VerticalAlign.Middle || o.verticalAlign === BI.VerticalAlign.Stretch) ? "100%" : "auto", + height: (o.verticalAlign !== BI.VerticalAlign.Top) ? "100%" : "auto", "white-space": "nowrap" }); this.populate(this.options.items); @@ -61,8 +61,6 @@ BI.TableAdaptLayout = BI.inherit(BI.Layout, { position: "relative", display: "table-cell", "vertical-align": o.verticalAlign, - margin: "0", - padding: "0", height: "100%" }); if (o.vgap + o.tgap + (item.tgap || 0) + (item.vgap || 0) !== 0) { diff --git a/src/core/wrapper/layout/adapt/adapt.vertical.js b/src/core/wrapper/layout/adapt/adapt.vertical.js index 82fa8b297..15fc8e7c0 100644 --- a/src/core/wrapper/layout/adapt/adapt.vertical.js +++ b/src/core/wrapper/layout/adapt/adapt.vertical.js @@ -7,6 +7,7 @@ BI.VerticalAdaptLayout = BI.inherit(BI.Layout, { props: { baseCls: "bi-v-a", horizontalAlign: BI.HorizontalAlign.Left, + verticalAlign: BI.VerticalAlign.Middle, columnSize: [], scrollx: false, hgap: 0, @@ -22,8 +23,8 @@ BI.VerticalAdaptLayout = BI.inherit(BI.Layout, { BI.VerticalAdaptLayout.superclass.render.apply(this, arguments); return { type: "bi.horizontal", - verticalAlign: BI.VerticalAlign.Middle, horizontalAlign: o.horizontalAlign, + verticalAlign: o.verticalAlign, columnSize: o.columnSize, items: o.items, scrollx: o.scrollx, diff --git a/src/core/wrapper/layout/flex/flex.horizontal.center.js b/src/core/wrapper/layout/flex/flex.horizontal.center.js index ef5baa4d4..0c4207484 100644 --- a/src/core/wrapper/layout/flex/flex.horizontal.center.js +++ b/src/core/wrapper/layout/flex/flex.horizontal.center.js @@ -8,6 +8,7 @@ BI.FlexHorizontalCenter = BI.inherit(BI.Layout, { props: function () { return BI.extend(BI.FlexHorizontalCenter.superclass.props.apply(this, arguments), { baseCls: "bi-f-h-c", + horizontalAlign: BI.HorizontalAlign.Center, verticalAlign: BI.VerticalAlign.Top, rowSize: [], scrolly: false, @@ -26,7 +27,7 @@ BI.FlexHorizontalCenter = BI.inherit(BI.Layout, { ref: function (_ref) { self.wrapper = _ref; }, - horizontalAlign: BI.HorizontalAlign.Center, + horizontalAlign: o.horizontalAlign, verticalAlign: o.verticalAlign, columnSize: o.columnSize, rowSize: o.rowSize, diff --git a/src/core/wrapper/layout/flex/flex.vertical.center.js b/src/core/wrapper/layout/flex/flex.vertical.center.js index d67ca1ce8..24559546d 100644 --- a/src/core/wrapper/layout/flex/flex.vertical.center.js +++ b/src/core/wrapper/layout/flex/flex.vertical.center.js @@ -10,6 +10,7 @@ BI.FlexVerticalCenter = BI.inherit(BI.Layout, { return BI.extend(BI.FlexVerticalCenter.superclass.props.apply(this, arguments), { baseCls: "bi-f-v-c", horizontalAlign: BI.HorizontalAlign.Left, + verticalAlign: BI.VerticalAlign.Middle, columnSize: [], scrollx: false, hgap: 0, @@ -27,7 +28,7 @@ BI.FlexVerticalCenter = BI.inherit(BI.Layout, { ref: function (_ref) { self.wrapper = _ref; }, - verticalAlign: BI.VerticalAlign.Middle, + verticalAlign: o.verticalAlign, horizontalAlign: o.horizontalAlign, columnSize: o.columnSize, rowSize: o.rowSize, 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 4e110f222..7af0c413d 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 @@ -9,6 +9,7 @@ BI.FlexWrapperHorizontalCenter = BI.inherit(BI.Layout, { props: function () { return BI.extend(BI.FlexWrapperHorizontalCenter.superclass.props.apply(this, arguments), { baseCls: "bi-f-s-v-c clearfix", + horizontalAlign: BI.HorizontalAlign.Center, verticalAlign: BI.VerticalAlign.Top, rowSize: [], scrollable: true, @@ -28,7 +29,7 @@ BI.FlexWrapperHorizontalCenter = BI.inherit(BI.Layout, { ref: function (_ref) { self.wrapper = _ref; }, - horizontalAlign: BI.HorizontalAlign.Center, + horizontalAlign: o.horizontalAlign, verticalAlign: o.verticalAlign, columnSize: o.columnSize, rowSize: o.rowSize, 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 f9d9421ad..dc6ff2a1c 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 @@ -10,6 +10,7 @@ BI.FlexWrapperVerticalCenter = BI.inherit(BI.Layout, { return BI.extend(BI.FlexWrapperVerticalCenter.superclass.props.apply(this, arguments), { baseCls: "bi-f-s-v-c clearfix", horizontalAlign: BI.HorizontalAlign.Left, + verticalAlign: BI.VerticalAlign.Middle, columnSize: [], scrollx: false, scrollable: true, @@ -28,7 +29,7 @@ BI.FlexWrapperVerticalCenter = BI.inherit(BI.Layout, { ref: function (_ref) { self.wrapper = _ref; }, - verticalAlign: BI.VerticalAlign.Middle, + verticalAlign: o.verticalAlign, horizontalAlign: o.horizontalAlign, columnSize: o.columnSize, rowSize: o.rowSize, diff --git a/src/core/wrapper/layout/layout.horizontal.js b/src/core/wrapper/layout/layout.horizontal.js index 79bb92a20..e7997c682 100644 --- a/src/core/wrapper/layout/layout.horizontal.js +++ b/src/core/wrapper/layout/layout.horizontal.js @@ -3,176 +3,5 @@ * @class BI.HorizontalLayout * @extends BI.Layout */ -BI.HorizontalLayout = BI.inherit(BI.Layout, { - props: function () { - return BI.extend(BI.HorizontalLayout.superclass.props.apply(this, arguments), { - baseCls: "bi-h", - verticalAlign: BI.VerticalAlign.Top, - horizontalAlign: BI.HorizontalAlign.Left, - columnSize: [], - scrollx: true, - hgap: 0, - vgap: 0, - lgap: 0, - rgap: 0, - tgap: 0, - bgap: 0 - }); - }, - render: function () { - var o = this.options; - BI.HorizontalLayout.superclass.render.apply(this, arguments); - this.$table = BI.Widget._renderEngine.createElement("