Browse Source

Merge pull request #866 in VISUAL/fineui from ~GUY/fineui:master to master

* commit 'd6db584cb5c5aa7e26f6d94437658459010526e5':
  布局
  布局
master
guy 6 years ago
parent
commit
2d5b64c9f4
  1. 40
      dist/2.0/fineui.ie.js
  2. 70
      dist/2.0/fineui.ie.min.js
  3. 40
      dist/2.0/fineui.js
  4. 70
      dist/2.0/fineui.min.js
  5. 40
      dist/bundle.ie.js
  6. 70
      dist/bundle.ie.min.js
  7. 40
      dist/bundle.js
  8. 70
      dist/bundle.min.js
  9. 40
      dist/core.js
  10. 40
      dist/fineui.ie.js
  11. 70
      dist/fineui.ie.min.js
  12. 40
      dist/fineui.js
  13. 70
      dist/fineui.min.js
  14. 4
      dist/fineui_without_jquery_polyfill.js
  15. 2
      dist/utils.min.js
  16. 36
      src/core/platform/web/config.js
  17. 2
      src/core/wrapper/layout/flex/flex.horizontal.center.js
  18. 2
      src/core/wrapper/layout/flex/flex.vertical.center.js

40
dist/2.0/fineui.ie.js vendored

@ -19201,6 +19201,42 @@ BI.prepares.push(function () {
return BI.extend(ob, {type: "bi.inline_center_adapt"}); return BI.extend(ob, {type: "bi.inline_center_adapt"});
}); });
BI.Plugin.registerWidget("bi.flex_horizontal", function (ob) {
if (ob.scrollable === true || ob.scrolly === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_horizontal"});
}
});
BI.Plugin.registerWidget("bi.flex_vertical", function (ob) {
if (ob.scrollable === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_vertical"});
}
});
BI.Plugin.registerWidget("bi.flex_horizontal_adapt", function (ob) {
if (ob.scrollable === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_horizontal_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_vertical_adapt", function (ob) {
if (ob.scrollable === true || ob.scrolly === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_vertical_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_horizontal_center_adapt", function (ob) {
if (ob.scrollable === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_horizontal_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_vertical_center_adapt", function (ob) {
if (ob.scrollable === true || ob.scrolly === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_vertical_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_center_adapt", function (ob) {
if (ob.scrollable === true || ob.scrolly === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_center_adapt"});
}
});
BI.Plugin.registerWidget("bi.radio", function (ob) { BI.Plugin.registerWidget("bi.radio", function (ob) {
if (BI.isIE() && BI.getIEVersion() < 9) { if (BI.isIE() && BI.getIEVersion() < 9) {
return BI.extend(ob, {type: "bi.image_radio"}); return BI.extend(ob, {type: "bi.image_radio"});
@ -31375,7 +31411,7 @@ BI.FlexHorizontalCenter = BI.inherit(BI.Layout, {
}, },
populate: function (items) { populate: function (items) {
self.populate(items); this.wrapper.populate(items);
} }
}); });
BI.shortcut("bi.flex_horizontal_adapt", BI.FlexHorizontalCenter); BI.shortcut("bi.flex_horizontal_adapt", BI.FlexHorizontalCenter);
@ -31504,7 +31540,7 @@ BI.FlexVerticalCenter = BI.inherit(BI.Layout, {
}, },
populate: function (items) { populate: function (items) {
self.populate(items); this.wrapper.populate(items);
} }
}); });
BI.shortcut("bi.flex_vertical_adapt", BI.FlexVerticalCenter); BI.shortcut("bi.flex_vertical_adapt", BI.FlexVerticalCenter);

70
dist/2.0/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

40
dist/2.0/fineui.js vendored

@ -19201,6 +19201,42 @@ BI.prepares.push(function () {
return BI.extend(ob, {type: "bi.inline_center_adapt"}); return BI.extend(ob, {type: "bi.inline_center_adapt"});
}); });
BI.Plugin.registerWidget("bi.flex_horizontal", function (ob) {
if (ob.scrollable === true || ob.scrolly === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_horizontal"});
}
});
BI.Plugin.registerWidget("bi.flex_vertical", function (ob) {
if (ob.scrollable === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_vertical"});
}
});
BI.Plugin.registerWidget("bi.flex_horizontal_adapt", function (ob) {
if (ob.scrollable === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_horizontal_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_vertical_adapt", function (ob) {
if (ob.scrollable === true || ob.scrolly === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_vertical_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_horizontal_center_adapt", function (ob) {
if (ob.scrollable === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_horizontal_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_vertical_center_adapt", function (ob) {
if (ob.scrollable === true || ob.scrolly === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_vertical_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_center_adapt", function (ob) {
if (ob.scrollable === true || ob.scrolly === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_center_adapt"});
}
});
BI.Plugin.registerWidget("bi.radio", function (ob) { BI.Plugin.registerWidget("bi.radio", function (ob) {
if (BI.isIE() && BI.getIEVersion() < 9) { if (BI.isIE() && BI.getIEVersion() < 9) {
return BI.extend(ob, {type: "bi.image_radio"}); return BI.extend(ob, {type: "bi.image_radio"});
@ -31375,7 +31411,7 @@ BI.FlexHorizontalCenter = BI.inherit(BI.Layout, {
}, },
populate: function (items) { populate: function (items) {
self.populate(items); this.wrapper.populate(items);
} }
}); });
BI.shortcut("bi.flex_horizontal_adapt", BI.FlexHorizontalCenter); BI.shortcut("bi.flex_horizontal_adapt", BI.FlexHorizontalCenter);
@ -31504,7 +31540,7 @@ BI.FlexVerticalCenter = BI.inherit(BI.Layout, {
}, },
populate: function (items) { populate: function (items) {
self.populate(items); this.wrapper.populate(items);
} }
}); });
BI.shortcut("bi.flex_vertical_adapt", BI.FlexVerticalCenter); BI.shortcut("bi.flex_vertical_adapt", BI.FlexVerticalCenter);

70
dist/2.0/fineui.min.js vendored

File diff suppressed because one or more lines are too long

40
dist/bundle.ie.js vendored

@ -19201,6 +19201,42 @@ BI.prepares.push(function () {
return BI.extend(ob, {type: "bi.inline_center_adapt"}); return BI.extend(ob, {type: "bi.inline_center_adapt"});
}); });
BI.Plugin.registerWidget("bi.flex_horizontal", function (ob) {
if (ob.scrollable === true || ob.scrolly === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_horizontal"});
}
});
BI.Plugin.registerWidget("bi.flex_vertical", function (ob) {
if (ob.scrollable === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_vertical"});
}
});
BI.Plugin.registerWidget("bi.flex_horizontal_adapt", function (ob) {
if (ob.scrollable === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_horizontal_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_vertical_adapt", function (ob) {
if (ob.scrollable === true || ob.scrolly === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_vertical_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_horizontal_center_adapt", function (ob) {
if (ob.scrollable === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_horizontal_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_vertical_center_adapt", function (ob) {
if (ob.scrollable === true || ob.scrolly === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_vertical_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_center_adapt", function (ob) {
if (ob.scrollable === true || ob.scrolly === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_center_adapt"});
}
});
BI.Plugin.registerWidget("bi.radio", function (ob) { BI.Plugin.registerWidget("bi.radio", function (ob) {
if (BI.isIE() && BI.getIEVersion() < 9) { if (BI.isIE() && BI.getIEVersion() < 9) {
return BI.extend(ob, {type: "bi.image_radio"}); return BI.extend(ob, {type: "bi.image_radio"});
@ -31375,7 +31411,7 @@ BI.FlexHorizontalCenter = BI.inherit(BI.Layout, {
}, },
populate: function (items) { populate: function (items) {
self.populate(items); this.wrapper.populate(items);
} }
}); });
BI.shortcut("bi.flex_horizontal_adapt", BI.FlexHorizontalCenter); BI.shortcut("bi.flex_horizontal_adapt", BI.FlexHorizontalCenter);
@ -31504,7 +31540,7 @@ BI.FlexVerticalCenter = BI.inherit(BI.Layout, {
}, },
populate: function (items) { populate: function (items) {
self.populate(items); this.wrapper.populate(items);
} }
}); });
BI.shortcut("bi.flex_vertical_adapt", BI.FlexVerticalCenter); BI.shortcut("bi.flex_vertical_adapt", BI.FlexVerticalCenter);

70
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

40
dist/bundle.js vendored

@ -19201,6 +19201,42 @@ BI.prepares.push(function () {
return BI.extend(ob, {type: "bi.inline_center_adapt"}); return BI.extend(ob, {type: "bi.inline_center_adapt"});
}); });
BI.Plugin.registerWidget("bi.flex_horizontal", function (ob) {
if (ob.scrollable === true || ob.scrolly === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_horizontal"});
}
});
BI.Plugin.registerWidget("bi.flex_vertical", function (ob) {
if (ob.scrollable === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_vertical"});
}
});
BI.Plugin.registerWidget("bi.flex_horizontal_adapt", function (ob) {
if (ob.scrollable === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_horizontal_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_vertical_adapt", function (ob) {
if (ob.scrollable === true || ob.scrolly === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_vertical_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_horizontal_center_adapt", function (ob) {
if (ob.scrollable === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_horizontal_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_vertical_center_adapt", function (ob) {
if (ob.scrollable === true || ob.scrolly === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_vertical_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_center_adapt", function (ob) {
if (ob.scrollable === true || ob.scrolly === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_center_adapt"});
}
});
BI.Plugin.registerWidget("bi.radio", function (ob) { BI.Plugin.registerWidget("bi.radio", function (ob) {
if (BI.isIE() && BI.getIEVersion() < 9) { if (BI.isIE() && BI.getIEVersion() < 9) {
return BI.extend(ob, {type: "bi.image_radio"}); return BI.extend(ob, {type: "bi.image_radio"});
@ -31375,7 +31411,7 @@ BI.FlexHorizontalCenter = BI.inherit(BI.Layout, {
}, },
populate: function (items) { populate: function (items) {
self.populate(items); this.wrapper.populate(items);
} }
}); });
BI.shortcut("bi.flex_horizontal_adapt", BI.FlexHorizontalCenter); BI.shortcut("bi.flex_horizontal_adapt", BI.FlexHorizontalCenter);
@ -31504,7 +31540,7 @@ BI.FlexVerticalCenter = BI.inherit(BI.Layout, {
}, },
populate: function (items) { populate: function (items) {
self.populate(items); this.wrapper.populate(items);
} }
}); });
BI.shortcut("bi.flex_vertical_adapt", BI.FlexVerticalCenter); BI.shortcut("bi.flex_vertical_adapt", BI.FlexVerticalCenter);

70
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

40
dist/core.js vendored

@ -19201,6 +19201,42 @@ BI.prepares.push(function () {
return BI.extend(ob, {type: "bi.inline_center_adapt"}); return BI.extend(ob, {type: "bi.inline_center_adapt"});
}); });
BI.Plugin.registerWidget("bi.flex_horizontal", function (ob) {
if (ob.scrollable === true || ob.scrolly === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_horizontal"});
}
});
BI.Plugin.registerWidget("bi.flex_vertical", function (ob) {
if (ob.scrollable === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_vertical"});
}
});
BI.Plugin.registerWidget("bi.flex_horizontal_adapt", function (ob) {
if (ob.scrollable === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_horizontal_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_vertical_adapt", function (ob) {
if (ob.scrollable === true || ob.scrolly === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_vertical_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_horizontal_center_adapt", function (ob) {
if (ob.scrollable === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_horizontal_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_vertical_center_adapt", function (ob) {
if (ob.scrollable === true || ob.scrolly === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_vertical_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_center_adapt", function (ob) {
if (ob.scrollable === true || ob.scrolly === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_center_adapt"});
}
});
BI.Plugin.registerWidget("bi.radio", function (ob) { BI.Plugin.registerWidget("bi.radio", function (ob) {
if (BI.isIE() && BI.getIEVersion() < 9) { if (BI.isIE() && BI.getIEVersion() < 9) {
return BI.extend(ob, {type: "bi.image_radio"}); return BI.extend(ob, {type: "bi.image_radio"});
@ -31375,7 +31411,7 @@ BI.FlexHorizontalCenter = BI.inherit(BI.Layout, {
}, },
populate: function (items) { populate: function (items) {
self.populate(items); this.wrapper.populate(items);
} }
}); });
BI.shortcut("bi.flex_horizontal_adapt", BI.FlexHorizontalCenter); BI.shortcut("bi.flex_horizontal_adapt", BI.FlexHorizontalCenter);
@ -31504,7 +31540,7 @@ BI.FlexVerticalCenter = BI.inherit(BI.Layout, {
}, },
populate: function (items) { populate: function (items) {
self.populate(items); this.wrapper.populate(items);
} }
}); });
BI.shortcut("bi.flex_vertical_adapt", BI.FlexVerticalCenter); BI.shortcut("bi.flex_vertical_adapt", BI.FlexVerticalCenter);

40
dist/fineui.ie.js vendored

@ -19446,6 +19446,42 @@ BI.prepares.push(function () {
return BI.extend(ob, {type: "bi.inline_center_adapt"}); return BI.extend(ob, {type: "bi.inline_center_adapt"});
}); });
BI.Plugin.registerWidget("bi.flex_horizontal", function (ob) {
if (ob.scrollable === true || ob.scrolly === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_horizontal"});
}
});
BI.Plugin.registerWidget("bi.flex_vertical", function (ob) {
if (ob.scrollable === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_vertical"});
}
});
BI.Plugin.registerWidget("bi.flex_horizontal_adapt", function (ob) {
if (ob.scrollable === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_horizontal_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_vertical_adapt", function (ob) {
if (ob.scrollable === true || ob.scrolly === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_vertical_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_horizontal_center_adapt", function (ob) {
if (ob.scrollable === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_horizontal_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_vertical_center_adapt", function (ob) {
if (ob.scrollable === true || ob.scrolly === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_vertical_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_center_adapt", function (ob) {
if (ob.scrollable === true || ob.scrolly === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_center_adapt"});
}
});
BI.Plugin.registerWidget("bi.radio", function (ob) { BI.Plugin.registerWidget("bi.radio", function (ob) {
if (BI.isIE() && BI.getIEVersion() < 9) { if (BI.isIE() && BI.getIEVersion() < 9) {
return BI.extend(ob, {type: "bi.image_radio"}); return BI.extend(ob, {type: "bi.image_radio"});
@ -31620,7 +31656,7 @@ BI.FlexHorizontalCenter = BI.inherit(BI.Layout, {
}, },
populate: function (items) { populate: function (items) {
self.populate(items); this.wrapper.populate(items);
} }
}); });
BI.shortcut("bi.flex_horizontal_adapt", BI.FlexHorizontalCenter); BI.shortcut("bi.flex_horizontal_adapt", BI.FlexHorizontalCenter);
@ -31749,7 +31785,7 @@ BI.FlexVerticalCenter = BI.inherit(BI.Layout, {
}, },
populate: function (items) { populate: function (items) {
self.populate(items); this.wrapper.populate(items);
} }
}); });
BI.shortcut("bi.flex_vertical_adapt", BI.FlexVerticalCenter); BI.shortcut("bi.flex_vertical_adapt", BI.FlexVerticalCenter);

70
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

40
dist/fineui.js vendored

@ -19446,6 +19446,42 @@ BI.prepares.push(function () {
return BI.extend(ob, {type: "bi.inline_center_adapt"}); return BI.extend(ob, {type: "bi.inline_center_adapt"});
}); });
BI.Plugin.registerWidget("bi.flex_horizontal", function (ob) {
if (ob.scrollable === true || ob.scrolly === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_horizontal"});
}
});
BI.Plugin.registerWidget("bi.flex_vertical", function (ob) {
if (ob.scrollable === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_vertical"});
}
});
BI.Plugin.registerWidget("bi.flex_horizontal_adapt", function (ob) {
if (ob.scrollable === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_horizontal_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_vertical_adapt", function (ob) {
if (ob.scrollable === true || ob.scrolly === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_vertical_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_horizontal_center_adapt", function (ob) {
if (ob.scrollable === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_horizontal_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_vertical_center_adapt", function (ob) {
if (ob.scrollable === true || ob.scrolly === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_vertical_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_center_adapt", function (ob) {
if (ob.scrollable === true || ob.scrolly === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_center_adapt"});
}
});
BI.Plugin.registerWidget("bi.radio", function (ob) { BI.Plugin.registerWidget("bi.radio", function (ob) {
if (BI.isIE() && BI.getIEVersion() < 9) { if (BI.isIE() && BI.getIEVersion() < 9) {
return BI.extend(ob, {type: "bi.image_radio"}); return BI.extend(ob, {type: "bi.image_radio"});
@ -31620,7 +31656,7 @@ BI.FlexHorizontalCenter = BI.inherit(BI.Layout, {
}, },
populate: function (items) { populate: function (items) {
self.populate(items); this.wrapper.populate(items);
} }
}); });
BI.shortcut("bi.flex_horizontal_adapt", BI.FlexHorizontalCenter); BI.shortcut("bi.flex_horizontal_adapt", BI.FlexHorizontalCenter);
@ -31749,7 +31785,7 @@ BI.FlexVerticalCenter = BI.inherit(BI.Layout, {
}, },
populate: function (items) { populate: function (items) {
self.populate(items); this.wrapper.populate(items);
} }
}); });
BI.shortcut("bi.flex_vertical_adapt", BI.FlexVerticalCenter); BI.shortcut("bi.flex_vertical_adapt", BI.FlexVerticalCenter);

70
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

4
dist/fineui_without_jquery_polyfill.js vendored

@ -20301,7 +20301,7 @@ BI.FlexHorizontalCenter = BI.inherit(BI.Layout, {
}, },
populate: function (items) { populate: function (items) {
self.populate(items); this.wrapper.populate(items);
} }
}); });
BI.shortcut("bi.flex_horizontal_adapt", BI.FlexHorizontalCenter); BI.shortcut("bi.flex_horizontal_adapt", BI.FlexHorizontalCenter);
@ -20430,7 +20430,7 @@ BI.FlexVerticalCenter = BI.inherit(BI.Layout, {
}, },
populate: function (items) { populate: function (items) {
self.populate(items); this.wrapper.populate(items);
} }
}); });
BI.shortcut("bi.flex_vertical_adapt", BI.FlexVerticalCenter); BI.shortcut("bi.flex_vertical_adapt", BI.FlexVerticalCenter);

2
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

36
src/core/platform/web/config.js

@ -90,6 +90,42 @@ BI.prepares.push(function () {
return BI.extend(ob, {type: "bi.inline_center_adapt"}); return BI.extend(ob, {type: "bi.inline_center_adapt"});
}); });
BI.Plugin.registerWidget("bi.flex_horizontal", function (ob) {
if (ob.scrollable === true || ob.scrolly === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_horizontal"});
}
});
BI.Plugin.registerWidget("bi.flex_vertical", function (ob) {
if (ob.scrollable === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_vertical"});
}
});
BI.Plugin.registerWidget("bi.flex_horizontal_adapt", function (ob) {
if (ob.scrollable === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_horizontal_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_vertical_adapt", function (ob) {
if (ob.scrollable === true || ob.scrolly === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_vertical_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_horizontal_center_adapt", function (ob) {
if (ob.scrollable === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_horizontal_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_vertical_center_adapt", function (ob) {
if (ob.scrollable === true || ob.scrolly === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_vertical_adapt"});
}
});
BI.Plugin.registerWidget("bi.flex_center_adapt", function (ob) {
if (ob.scrollable === true || ob.scrolly === true || ob.scrollx === true) {
return BI.extend({}, ob, {type: "bi.flex_scrollable_center_adapt"});
}
});
BI.Plugin.registerWidget("bi.radio", function (ob) { BI.Plugin.registerWidget("bi.radio", function (ob) {
if (BI.isIE() && BI.getIEVersion() < 9) { if (BI.isIE() && BI.getIEVersion() < 9) {
return BI.extend(ob, {type: "bi.image_radio"}); return BI.extend(ob, {type: "bi.image_radio"});

2
src/core/wrapper/layout/flex/flex.horizontal.center.js

@ -47,7 +47,7 @@ BI.FlexHorizontalCenter = BI.inherit(BI.Layout, {
}, },
populate: function (items) { populate: function (items) {
self.populate(items); this.wrapper.populate(items);
} }
}); });
BI.shortcut("bi.flex_horizontal_adapt", BI.FlexHorizontalCenter); BI.shortcut("bi.flex_horizontal_adapt", BI.FlexHorizontalCenter);

2
src/core/wrapper/layout/flex/flex.vertical.center.js

@ -48,7 +48,7 @@ BI.FlexVerticalCenter = BI.inherit(BI.Layout, {
}, },
populate: function (items) { populate: function (items) {
self.populate(items); this.wrapper.populate(items);
} }
}); });
BI.shortcut("bi.flex_vertical_adapt", BI.FlexVerticalCenter); BI.shortcut("bi.flex_vertical_adapt", BI.FlexVerticalCenter);

Loading…
Cancel
Save