Browse Source

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

* commit '25933a8bdffc36b8e1f32bbff481add89e4f5846':
  bugfix
es6
guy 5 years ago
parent
commit
dfca911e4b
  1. 26
      dist/2.0/fineui.ie.js
  2. 68
      dist/2.0/fineui.ie.min.js
  3. 26
      dist/2.0/fineui.js
  4. 2
      dist/2.0/fineui.min.css
  5. 68
      dist/2.0/fineui.min.js
  6. 26
      dist/bundle.ie.js
  7. 68
      dist/bundle.ie.min.js
  8. 26
      dist/bundle.js
  9. 2
      dist/bundle.min.css
  10. 68
      dist/bundle.min.js
  11. 26
      dist/core.js
  12. 26
      dist/fineui.ie.js
  13. 78
      dist/fineui.ie.min.js
  14. 26
      dist/fineui.js
  15. 2
      dist/fineui.min.css
  16. 78
      dist/fineui.min.js
  17. 24
      dist/fineui_without_jquery_polyfill.js
  18. 4
      dist/utils.min.js
  19. 24
      src/core/wrapper/layout/layout.adaptive.js

26
dist/2.0/fineui.ie.js vendored

@ -21696,7 +21696,7 @@ BI.prepares.push(function () {
var addResizeListener = function (element, fn) { var addResizeListener = function (element, fn) {
if (attachEvent) { if (attachEvent) {
element.attachEvent("onresize", fn); element.attachEvent("onresize", fn);
BI.defer(fn); fn();
} else { } else {
if (!element.__resizeTriggers__) { if (!element.__resizeTriggers__) {
if (getComputedStyle(element).position === "static") element.style.position = "relative"; if (getComputedStyle(element).position === "static") element.style.position = "relative";
@ -34510,53 +34510,53 @@ BI.shortcut("bi.absolute", BI.AbsoluteLayout);BI.AdaptiveLayout = BI.inherit(BI.
var left = 0, right = 0, top = 0, bottom = 0; var left = 0, right = 0, top = 0, bottom = 0;
if (BI.isNotNull(item.left)) { if (BI.isNotNull(item.left)) {
w.element.css({ w.element.css({
"margin-left": item.left left: item.left
}); });
} }
if (BI.isNotNull(item.right)) { if (BI.isNotNull(item.right)) {
w.element.css({ w.element.css({
"margin-right": item.right right: item.right
}); });
} }
if (BI.isNotNull(item.top)) { if (BI.isNotNull(item.top)) {
w.element.css({ w.element.css({
"margin-top": item.top top: item.top
}); });
} }
if (BI.isNotNull(item.bottom)) { if (BI.isNotNull(item.bottom)) {
w.element.css({ w.element.css({
"margin-bottom": item.bottom bottom: item.bottom
}); });
} }
if (BI.isNotNull(o.hgap)) { if (BI.isNotNull(o.hgap)) {
left += o.hgap; left += o.hgap;
w.element.css({left: left}); w.element.css({"margin-left": left});
right += o.hgap; right += o.hgap;
w.element.css({right: right}); w.element.css({"margin-right": right});
} }
if (BI.isNotNull(o.vgap)) { if (BI.isNotNull(o.vgap)) {
top += o.vgap; top += o.vgap;
w.element.css({top: top}); w.element.css({"margin-top": top});
bottom += o.vgap; bottom += o.vgap;
w.element.css({bottom: bottom}); w.element.css({"margin-bottom": bottom});
} }
if (BI.isNotNull(o.lgap)) { if (BI.isNotNull(o.lgap)) {
left += o.lgap; left += o.lgap;
w.element.css({left: left}); w.element.css({"margin-left": left});
} }
if (BI.isNotNull(o.rgap)) { if (BI.isNotNull(o.rgap)) {
right += o.rgap; right += o.rgap;
w.element.css({right: right}); w.element.css({"margin-right": right});
} }
if (BI.isNotNull(o.tgap)) { if (BI.isNotNull(o.tgap)) {
top += o.tgap; top += o.tgap;
w.element.css({top: top}); w.element.css({"margin-top": top});
} }
if (BI.isNotNull(o.bgap)) { if (BI.isNotNull(o.bgap)) {
bottom += o.bgap; bottom += o.bgap;
w.element.css({bottom: bottom}); w.element.css({"margin-bottom": bottom});
} }
if (BI.isNotNull(item.width)) { if (BI.isNotNull(item.width)) {

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

File diff suppressed because one or more lines are too long

26
dist/2.0/fineui.js vendored

@ -21696,7 +21696,7 @@ BI.prepares.push(function () {
var addResizeListener = function (element, fn) { var addResizeListener = function (element, fn) {
if (attachEvent) { if (attachEvent) {
element.attachEvent("onresize", fn); element.attachEvent("onresize", fn);
BI.defer(fn); fn();
} else { } else {
if (!element.__resizeTriggers__) { if (!element.__resizeTriggers__) {
if (getComputedStyle(element).position === "static") element.style.position = "relative"; if (getComputedStyle(element).position === "static") element.style.position = "relative";
@ -34510,53 +34510,53 @@ BI.shortcut("bi.absolute", BI.AbsoluteLayout);BI.AdaptiveLayout = BI.inherit(BI.
var left = 0, right = 0, top = 0, bottom = 0; var left = 0, right = 0, top = 0, bottom = 0;
if (BI.isNotNull(item.left)) { if (BI.isNotNull(item.left)) {
w.element.css({ w.element.css({
"margin-left": item.left left: item.left
}); });
} }
if (BI.isNotNull(item.right)) { if (BI.isNotNull(item.right)) {
w.element.css({ w.element.css({
"margin-right": item.right right: item.right
}); });
} }
if (BI.isNotNull(item.top)) { if (BI.isNotNull(item.top)) {
w.element.css({ w.element.css({
"margin-top": item.top top: item.top
}); });
} }
if (BI.isNotNull(item.bottom)) { if (BI.isNotNull(item.bottom)) {
w.element.css({ w.element.css({
"margin-bottom": item.bottom bottom: item.bottom
}); });
} }
if (BI.isNotNull(o.hgap)) { if (BI.isNotNull(o.hgap)) {
left += o.hgap; left += o.hgap;
w.element.css({left: left}); w.element.css({"margin-left": left});
right += o.hgap; right += o.hgap;
w.element.css({right: right}); w.element.css({"margin-right": right});
} }
if (BI.isNotNull(o.vgap)) { if (BI.isNotNull(o.vgap)) {
top += o.vgap; top += o.vgap;
w.element.css({top: top}); w.element.css({"margin-top": top});
bottom += o.vgap; bottom += o.vgap;
w.element.css({bottom: bottom}); w.element.css({"margin-bottom": bottom});
} }
if (BI.isNotNull(o.lgap)) { if (BI.isNotNull(o.lgap)) {
left += o.lgap; left += o.lgap;
w.element.css({left: left}); w.element.css({"margin-left": left});
} }
if (BI.isNotNull(o.rgap)) { if (BI.isNotNull(o.rgap)) {
right += o.rgap; right += o.rgap;
w.element.css({right: right}); w.element.css({"margin-right": right});
} }
if (BI.isNotNull(o.tgap)) { if (BI.isNotNull(o.tgap)) {
top += o.tgap; top += o.tgap;
w.element.css({top: top}); w.element.css({"margin-top": top});
} }
if (BI.isNotNull(o.bgap)) { if (BI.isNotNull(o.bgap)) {
bottom += o.bgap; bottom += o.bgap;
w.element.css({bottom: bottom}); w.element.css({"margin-bottom": bottom});
} }
if (BI.isNotNull(item.width)) { if (BI.isNotNull(item.width)) {

2
dist/2.0/fineui.min.css vendored

File diff suppressed because one or more lines are too long

68
dist/2.0/fineui.min.js vendored

File diff suppressed because one or more lines are too long

26
dist/bundle.ie.js vendored

@ -21696,7 +21696,7 @@ BI.prepares.push(function () {
var addResizeListener = function (element, fn) { var addResizeListener = function (element, fn) {
if (attachEvent) { if (attachEvent) {
element.attachEvent("onresize", fn); element.attachEvent("onresize", fn);
BI.defer(fn); fn();
} else { } else {
if (!element.__resizeTriggers__) { if (!element.__resizeTriggers__) {
if (getComputedStyle(element).position === "static") element.style.position = "relative"; if (getComputedStyle(element).position === "static") element.style.position = "relative";
@ -34510,53 +34510,53 @@ BI.shortcut("bi.absolute", BI.AbsoluteLayout);BI.AdaptiveLayout = BI.inherit(BI.
var left = 0, right = 0, top = 0, bottom = 0; var left = 0, right = 0, top = 0, bottom = 0;
if (BI.isNotNull(item.left)) { if (BI.isNotNull(item.left)) {
w.element.css({ w.element.css({
"margin-left": item.left left: item.left
}); });
} }
if (BI.isNotNull(item.right)) { if (BI.isNotNull(item.right)) {
w.element.css({ w.element.css({
"margin-right": item.right right: item.right
}); });
} }
if (BI.isNotNull(item.top)) { if (BI.isNotNull(item.top)) {
w.element.css({ w.element.css({
"margin-top": item.top top: item.top
}); });
} }
if (BI.isNotNull(item.bottom)) { if (BI.isNotNull(item.bottom)) {
w.element.css({ w.element.css({
"margin-bottom": item.bottom bottom: item.bottom
}); });
} }
if (BI.isNotNull(o.hgap)) { if (BI.isNotNull(o.hgap)) {
left += o.hgap; left += o.hgap;
w.element.css({left: left}); w.element.css({"margin-left": left});
right += o.hgap; right += o.hgap;
w.element.css({right: right}); w.element.css({"margin-right": right});
} }
if (BI.isNotNull(o.vgap)) { if (BI.isNotNull(o.vgap)) {
top += o.vgap; top += o.vgap;
w.element.css({top: top}); w.element.css({"margin-top": top});
bottom += o.vgap; bottom += o.vgap;
w.element.css({bottom: bottom}); w.element.css({"margin-bottom": bottom});
} }
if (BI.isNotNull(o.lgap)) { if (BI.isNotNull(o.lgap)) {
left += o.lgap; left += o.lgap;
w.element.css({left: left}); w.element.css({"margin-left": left});
} }
if (BI.isNotNull(o.rgap)) { if (BI.isNotNull(o.rgap)) {
right += o.rgap; right += o.rgap;
w.element.css({right: right}); w.element.css({"margin-right": right});
} }
if (BI.isNotNull(o.tgap)) { if (BI.isNotNull(o.tgap)) {
top += o.tgap; top += o.tgap;
w.element.css({top: top}); w.element.css({"margin-top": top});
} }
if (BI.isNotNull(o.bgap)) { if (BI.isNotNull(o.bgap)) {
bottom += o.bgap; bottom += o.bgap;
w.element.css({bottom: bottom}); w.element.css({"margin-bottom": bottom});
} }
if (BI.isNotNull(item.width)) { if (BI.isNotNull(item.width)) {

68
dist/bundle.ie.min.js vendored

File diff suppressed because one or more lines are too long

26
dist/bundle.js vendored

@ -21696,7 +21696,7 @@ BI.prepares.push(function () {
var addResizeListener = function (element, fn) { var addResizeListener = function (element, fn) {
if (attachEvent) { if (attachEvent) {
element.attachEvent("onresize", fn); element.attachEvent("onresize", fn);
BI.defer(fn); fn();
} else { } else {
if (!element.__resizeTriggers__) { if (!element.__resizeTriggers__) {
if (getComputedStyle(element).position === "static") element.style.position = "relative"; if (getComputedStyle(element).position === "static") element.style.position = "relative";
@ -34510,53 +34510,53 @@ BI.shortcut("bi.absolute", BI.AbsoluteLayout);BI.AdaptiveLayout = BI.inherit(BI.
var left = 0, right = 0, top = 0, bottom = 0; var left = 0, right = 0, top = 0, bottom = 0;
if (BI.isNotNull(item.left)) { if (BI.isNotNull(item.left)) {
w.element.css({ w.element.css({
"margin-left": item.left left: item.left
}); });
} }
if (BI.isNotNull(item.right)) { if (BI.isNotNull(item.right)) {
w.element.css({ w.element.css({
"margin-right": item.right right: item.right
}); });
} }
if (BI.isNotNull(item.top)) { if (BI.isNotNull(item.top)) {
w.element.css({ w.element.css({
"margin-top": item.top top: item.top
}); });
} }
if (BI.isNotNull(item.bottom)) { if (BI.isNotNull(item.bottom)) {
w.element.css({ w.element.css({
"margin-bottom": item.bottom bottom: item.bottom
}); });
} }
if (BI.isNotNull(o.hgap)) { if (BI.isNotNull(o.hgap)) {
left += o.hgap; left += o.hgap;
w.element.css({left: left}); w.element.css({"margin-left": left});
right += o.hgap; right += o.hgap;
w.element.css({right: right}); w.element.css({"margin-right": right});
} }
if (BI.isNotNull(o.vgap)) { if (BI.isNotNull(o.vgap)) {
top += o.vgap; top += o.vgap;
w.element.css({top: top}); w.element.css({"margin-top": top});
bottom += o.vgap; bottom += o.vgap;
w.element.css({bottom: bottom}); w.element.css({"margin-bottom": bottom});
} }
if (BI.isNotNull(o.lgap)) { if (BI.isNotNull(o.lgap)) {
left += o.lgap; left += o.lgap;
w.element.css({left: left}); w.element.css({"margin-left": left});
} }
if (BI.isNotNull(o.rgap)) { if (BI.isNotNull(o.rgap)) {
right += o.rgap; right += o.rgap;
w.element.css({right: right}); w.element.css({"margin-right": right});
} }
if (BI.isNotNull(o.tgap)) { if (BI.isNotNull(o.tgap)) {
top += o.tgap; top += o.tgap;
w.element.css({top: top}); w.element.css({"margin-top": top});
} }
if (BI.isNotNull(o.bgap)) { if (BI.isNotNull(o.bgap)) {
bottom += o.bgap; bottom += o.bgap;
w.element.css({bottom: bottom}); w.element.css({"margin-bottom": bottom});
} }
if (BI.isNotNull(item.width)) { if (BI.isNotNull(item.width)) {

2
dist/bundle.min.css vendored

File diff suppressed because one or more lines are too long

68
dist/bundle.min.js vendored

File diff suppressed because one or more lines are too long

26
dist/core.js vendored

@ -21696,7 +21696,7 @@ BI.prepares.push(function () {
var addResizeListener = function (element, fn) { var addResizeListener = function (element, fn) {
if (attachEvent) { if (attachEvent) {
element.attachEvent("onresize", fn); element.attachEvent("onresize", fn);
BI.defer(fn); fn();
} else { } else {
if (!element.__resizeTriggers__) { if (!element.__resizeTriggers__) {
if (getComputedStyle(element).position === "static") element.style.position = "relative"; if (getComputedStyle(element).position === "static") element.style.position = "relative";
@ -34510,53 +34510,53 @@ BI.shortcut("bi.absolute", BI.AbsoluteLayout);BI.AdaptiveLayout = BI.inherit(BI.
var left = 0, right = 0, top = 0, bottom = 0; var left = 0, right = 0, top = 0, bottom = 0;
if (BI.isNotNull(item.left)) { if (BI.isNotNull(item.left)) {
w.element.css({ w.element.css({
"margin-left": item.left left: item.left
}); });
} }
if (BI.isNotNull(item.right)) { if (BI.isNotNull(item.right)) {
w.element.css({ w.element.css({
"margin-right": item.right right: item.right
}); });
} }
if (BI.isNotNull(item.top)) { if (BI.isNotNull(item.top)) {
w.element.css({ w.element.css({
"margin-top": item.top top: item.top
}); });
} }
if (BI.isNotNull(item.bottom)) { if (BI.isNotNull(item.bottom)) {
w.element.css({ w.element.css({
"margin-bottom": item.bottom bottom: item.bottom
}); });
} }
if (BI.isNotNull(o.hgap)) { if (BI.isNotNull(o.hgap)) {
left += o.hgap; left += o.hgap;
w.element.css({left: left}); w.element.css({"margin-left": left});
right += o.hgap; right += o.hgap;
w.element.css({right: right}); w.element.css({"margin-right": right});
} }
if (BI.isNotNull(o.vgap)) { if (BI.isNotNull(o.vgap)) {
top += o.vgap; top += o.vgap;
w.element.css({top: top}); w.element.css({"margin-top": top});
bottom += o.vgap; bottom += o.vgap;
w.element.css({bottom: bottom}); w.element.css({"margin-bottom": bottom});
} }
if (BI.isNotNull(o.lgap)) { if (BI.isNotNull(o.lgap)) {
left += o.lgap; left += o.lgap;
w.element.css({left: left}); w.element.css({"margin-left": left});
} }
if (BI.isNotNull(o.rgap)) { if (BI.isNotNull(o.rgap)) {
right += o.rgap; right += o.rgap;
w.element.css({right: right}); w.element.css({"margin-right": right});
} }
if (BI.isNotNull(o.tgap)) { if (BI.isNotNull(o.tgap)) {
top += o.tgap; top += o.tgap;
w.element.css({top: top}); w.element.css({"margin-top": top});
} }
if (BI.isNotNull(o.bgap)) { if (BI.isNotNull(o.bgap)) {
bottom += o.bgap; bottom += o.bgap;
w.element.css({bottom: bottom}); w.element.css({"margin-bottom": bottom});
} }
if (BI.isNotNull(item.width)) { if (BI.isNotNull(item.width)) {

26
dist/fineui.ie.js vendored

@ -21941,7 +21941,7 @@ BI.prepares.push(function () {
var addResizeListener = function (element, fn) { var addResizeListener = function (element, fn) {
if (attachEvent) { if (attachEvent) {
element.attachEvent("onresize", fn); element.attachEvent("onresize", fn);
BI.defer(fn); fn();
} else { } else {
if (!element.__resizeTriggers__) { if (!element.__resizeTriggers__) {
if (getComputedStyle(element).position === "static") element.style.position = "relative"; if (getComputedStyle(element).position === "static") element.style.position = "relative";
@ -34755,53 +34755,53 @@ BI.shortcut("bi.absolute", BI.AbsoluteLayout);BI.AdaptiveLayout = BI.inherit(BI.
var left = 0, right = 0, top = 0, bottom = 0; var left = 0, right = 0, top = 0, bottom = 0;
if (BI.isNotNull(item.left)) { if (BI.isNotNull(item.left)) {
w.element.css({ w.element.css({
"margin-left": item.left left: item.left
}); });
} }
if (BI.isNotNull(item.right)) { if (BI.isNotNull(item.right)) {
w.element.css({ w.element.css({
"margin-right": item.right right: item.right
}); });
} }
if (BI.isNotNull(item.top)) { if (BI.isNotNull(item.top)) {
w.element.css({ w.element.css({
"margin-top": item.top top: item.top
}); });
} }
if (BI.isNotNull(item.bottom)) { if (BI.isNotNull(item.bottom)) {
w.element.css({ w.element.css({
"margin-bottom": item.bottom bottom: item.bottom
}); });
} }
if (BI.isNotNull(o.hgap)) { if (BI.isNotNull(o.hgap)) {
left += o.hgap; left += o.hgap;
w.element.css({left: left}); w.element.css({"margin-left": left});
right += o.hgap; right += o.hgap;
w.element.css({right: right}); w.element.css({"margin-right": right});
} }
if (BI.isNotNull(o.vgap)) { if (BI.isNotNull(o.vgap)) {
top += o.vgap; top += o.vgap;
w.element.css({top: top}); w.element.css({"margin-top": top});
bottom += o.vgap; bottom += o.vgap;
w.element.css({bottom: bottom}); w.element.css({"margin-bottom": bottom});
} }
if (BI.isNotNull(o.lgap)) { if (BI.isNotNull(o.lgap)) {
left += o.lgap; left += o.lgap;
w.element.css({left: left}); w.element.css({"margin-left": left});
} }
if (BI.isNotNull(o.rgap)) { if (BI.isNotNull(o.rgap)) {
right += o.rgap; right += o.rgap;
w.element.css({right: right}); w.element.css({"margin-right": right});
} }
if (BI.isNotNull(o.tgap)) { if (BI.isNotNull(o.tgap)) {
top += o.tgap; top += o.tgap;
w.element.css({top: top}); w.element.css({"margin-top": top});
} }
if (BI.isNotNull(o.bgap)) { if (BI.isNotNull(o.bgap)) {
bottom += o.bgap; bottom += o.bgap;
w.element.css({bottom: bottom}); w.element.css({"margin-bottom": bottom});
} }
if (BI.isNotNull(item.width)) { if (BI.isNotNull(item.width)) {

78
dist/fineui.ie.min.js vendored

File diff suppressed because one or more lines are too long

26
dist/fineui.js vendored

@ -21941,7 +21941,7 @@ BI.prepares.push(function () {
var addResizeListener = function (element, fn) { var addResizeListener = function (element, fn) {
if (attachEvent) { if (attachEvent) {
element.attachEvent("onresize", fn); element.attachEvent("onresize", fn);
BI.defer(fn); fn();
} else { } else {
if (!element.__resizeTriggers__) { if (!element.__resizeTriggers__) {
if (getComputedStyle(element).position === "static") element.style.position = "relative"; if (getComputedStyle(element).position === "static") element.style.position = "relative";
@ -34755,53 +34755,53 @@ BI.shortcut("bi.absolute", BI.AbsoluteLayout);BI.AdaptiveLayout = BI.inherit(BI.
var left = 0, right = 0, top = 0, bottom = 0; var left = 0, right = 0, top = 0, bottom = 0;
if (BI.isNotNull(item.left)) { if (BI.isNotNull(item.left)) {
w.element.css({ w.element.css({
"margin-left": item.left left: item.left
}); });
} }
if (BI.isNotNull(item.right)) { if (BI.isNotNull(item.right)) {
w.element.css({ w.element.css({
"margin-right": item.right right: item.right
}); });
} }
if (BI.isNotNull(item.top)) { if (BI.isNotNull(item.top)) {
w.element.css({ w.element.css({
"margin-top": item.top top: item.top
}); });
} }
if (BI.isNotNull(item.bottom)) { if (BI.isNotNull(item.bottom)) {
w.element.css({ w.element.css({
"margin-bottom": item.bottom bottom: item.bottom
}); });
} }
if (BI.isNotNull(o.hgap)) { if (BI.isNotNull(o.hgap)) {
left += o.hgap; left += o.hgap;
w.element.css({left: left}); w.element.css({"margin-left": left});
right += o.hgap; right += o.hgap;
w.element.css({right: right}); w.element.css({"margin-right": right});
} }
if (BI.isNotNull(o.vgap)) { if (BI.isNotNull(o.vgap)) {
top += o.vgap; top += o.vgap;
w.element.css({top: top}); w.element.css({"margin-top": top});
bottom += o.vgap; bottom += o.vgap;
w.element.css({bottom: bottom}); w.element.css({"margin-bottom": bottom});
} }
if (BI.isNotNull(o.lgap)) { if (BI.isNotNull(o.lgap)) {
left += o.lgap; left += o.lgap;
w.element.css({left: left}); w.element.css({"margin-left": left});
} }
if (BI.isNotNull(o.rgap)) { if (BI.isNotNull(o.rgap)) {
right += o.rgap; right += o.rgap;
w.element.css({right: right}); w.element.css({"margin-right": right});
} }
if (BI.isNotNull(o.tgap)) { if (BI.isNotNull(o.tgap)) {
top += o.tgap; top += o.tgap;
w.element.css({top: top}); w.element.css({"margin-top": top});
} }
if (BI.isNotNull(o.bgap)) { if (BI.isNotNull(o.bgap)) {
bottom += o.bgap; bottom += o.bgap;
w.element.css({bottom: bottom}); w.element.css({"margin-bottom": bottom});
} }
if (BI.isNotNull(item.width)) { if (BI.isNotNull(item.width)) {

2
dist/fineui.min.css vendored

File diff suppressed because one or more lines are too long

78
dist/fineui.min.js vendored

File diff suppressed because one or more lines are too long

24
dist/fineui_without_jquery_polyfill.js vendored

@ -23330,53 +23330,53 @@ BI.shortcut("bi.absolute", BI.AbsoluteLayout);BI.AdaptiveLayout = BI.inherit(BI.
var left = 0, right = 0, top = 0, bottom = 0; var left = 0, right = 0, top = 0, bottom = 0;
if (BI.isNotNull(item.left)) { if (BI.isNotNull(item.left)) {
w.element.css({ w.element.css({
"margin-left": item.left left: item.left
}); });
} }
if (BI.isNotNull(item.right)) { if (BI.isNotNull(item.right)) {
w.element.css({ w.element.css({
"margin-right": item.right right: item.right
}); });
} }
if (BI.isNotNull(item.top)) { if (BI.isNotNull(item.top)) {
w.element.css({ w.element.css({
"margin-top": item.top top: item.top
}); });
} }
if (BI.isNotNull(item.bottom)) { if (BI.isNotNull(item.bottom)) {
w.element.css({ w.element.css({
"margin-bottom": item.bottom bottom: item.bottom
}); });
} }
if (BI.isNotNull(o.hgap)) { if (BI.isNotNull(o.hgap)) {
left += o.hgap; left += o.hgap;
w.element.css({left: left}); w.element.css({"margin-left": left});
right += o.hgap; right += o.hgap;
w.element.css({right: right}); w.element.css({"margin-right": right});
} }
if (BI.isNotNull(o.vgap)) { if (BI.isNotNull(o.vgap)) {
top += o.vgap; top += o.vgap;
w.element.css({top: top}); w.element.css({"margin-top": top});
bottom += o.vgap; bottom += o.vgap;
w.element.css({bottom: bottom}); w.element.css({"margin-bottom": bottom});
} }
if (BI.isNotNull(o.lgap)) { if (BI.isNotNull(o.lgap)) {
left += o.lgap; left += o.lgap;
w.element.css({left: left}); w.element.css({"margin-left": left});
} }
if (BI.isNotNull(o.rgap)) { if (BI.isNotNull(o.rgap)) {
right += o.rgap; right += o.rgap;
w.element.css({right: right}); w.element.css({"margin-right": right});
} }
if (BI.isNotNull(o.tgap)) { if (BI.isNotNull(o.tgap)) {
top += o.tgap; top += o.tgap;
w.element.css({top: top}); w.element.css({"margin-top": top});
} }
if (BI.isNotNull(o.bgap)) { if (BI.isNotNull(o.bgap)) {
bottom += o.bgap; bottom += o.bgap;
w.element.css({bottom: bottom}); w.element.css({"margin-bottom": bottom});
} }
if (BI.isNotNull(item.width)) { if (BI.isNotNull(item.width)) {

4
dist/utils.min.js vendored

File diff suppressed because one or more lines are too long

24
src/core/wrapper/layout/layout.adaptive.js

@ -22,53 +22,53 @@ BI.AdaptiveLayout = BI.inherit(BI.Layout, {
var left = 0, right = 0, top = 0, bottom = 0; var left = 0, right = 0, top = 0, bottom = 0;
if (BI.isNotNull(item.left)) { if (BI.isNotNull(item.left)) {
w.element.css({ w.element.css({
"margin-left": item.left left: item.left
}); });
} }
if (BI.isNotNull(item.right)) { if (BI.isNotNull(item.right)) {
w.element.css({ w.element.css({
"margin-right": item.right right: item.right
}); });
} }
if (BI.isNotNull(item.top)) { if (BI.isNotNull(item.top)) {
w.element.css({ w.element.css({
"margin-top": item.top top: item.top
}); });
} }
if (BI.isNotNull(item.bottom)) { if (BI.isNotNull(item.bottom)) {
w.element.css({ w.element.css({
"margin-bottom": item.bottom bottom: item.bottom
}); });
} }
if (BI.isNotNull(o.hgap)) { if (BI.isNotNull(o.hgap)) {
left += o.hgap; left += o.hgap;
w.element.css({left: left}); w.element.css({"margin-left": left});
right += o.hgap; right += o.hgap;
w.element.css({right: right}); w.element.css({"margin-right": right});
} }
if (BI.isNotNull(o.vgap)) { if (BI.isNotNull(o.vgap)) {
top += o.vgap; top += o.vgap;
w.element.css({top: top}); w.element.css({"margin-top": top});
bottom += o.vgap; bottom += o.vgap;
w.element.css({bottom: bottom}); w.element.css({"margin-bottom": bottom});
} }
if (BI.isNotNull(o.lgap)) { if (BI.isNotNull(o.lgap)) {
left += o.lgap; left += o.lgap;
w.element.css({left: left}); w.element.css({"margin-left": left});
} }
if (BI.isNotNull(o.rgap)) { if (BI.isNotNull(o.rgap)) {
right += o.rgap; right += o.rgap;
w.element.css({right: right}); w.element.css({"margin-right": right});
} }
if (BI.isNotNull(o.tgap)) { if (BI.isNotNull(o.tgap)) {
top += o.tgap; top += o.tgap;
w.element.css({top: top}); w.element.css({"margin-top": top});
} }
if (BI.isNotNull(o.bgap)) { if (BI.isNotNull(o.bgap)) {
bottom += o.bgap; bottom += o.bgap;
w.element.css({bottom: bottom}); w.element.css({"margin-bottom": bottom});
} }
if (BI.isNotNull(item.width)) { if (BI.isNotNull(item.width)) {

Loading…
Cancel
Save