guy 4 years ago
parent
commit
690244c4e4
  1. 8
      src/core/wrapper/layout/layout.tape.js

8
src/core/wrapper/layout/layout.tape.js

@ -67,7 +67,7 @@ BI.HTapeLayout = BI.inherit(BI.Layout, {
if (BI.isNull(left[i])) { if (BI.isNull(left[i])) {
left[i] = left[i - 1] + (o.columnSize[i - 1] || items[i - 1].width) + (items[i - 1].lgap || 0) + 2 * (items[i - 1].hgap || 0) + o.hgap + o.lgap + o.rgap; left[i] = left[i - 1] + (o.columnSize[i - 1] || items[i - 1].width) + (items[i - 1].lgap || 0) + 2 * (items[i - 1].hgap || 0) + o.hgap + o.lgap + o.rgap;
} }
if (o.columnSize[i] < 1 && o.columnSize[i] >= 0) { if (o.columnSize[i] < 1 && o.columnSize[i] > 0) {
w.element.css({ w.element.css({
left: (left[i] * 100).toFixed(1) + "%", left: (left[i] * 100).toFixed(1) + "%",
width: (o.columnSize[i] * 100).toFixed(1) + "%" width: (o.columnSize[i] * 100).toFixed(1) + "%"
@ -96,9 +96,9 @@ BI.HTapeLayout = BI.inherit(BI.Layout, {
if (BI.isNull(right[i])) { if (BI.isNull(right[i])) {
right[i] = right[i + 1] + (o.columnSize[i + 1] || items[i + 1].width) + (items[i + 1].rgap || 0) + 2 * (items[i + 1].hgap || 0) + o.hgap + o.lgap + o.rgap; right[i] = right[i + 1] + (o.columnSize[i + 1] || items[i + 1].width) + (items[i + 1].rgap || 0) + 2 * (items[i + 1].hgap || 0) + o.hgap + o.lgap + o.rgap;
} }
if (o.columnSize[i] < 1 && o.columnSize[i] >= 0) { if (o.columnSize[i] < 1 && o.columnSize[i] > 0) {
w.element.css({ w.element.css({
right: (left[i] * 100).toFixed(1) + "%", right: (right[i] * 100).toFixed(1) + "%",
width: (o.columnSize[i] * 100).toFixed(1) + "%" width: (o.columnSize[i] * 100).toFixed(1) + "%"
}); });
} else if (item.width < 1 && item.width >= 0) { } else if (item.width < 1 && item.width >= 0) {
@ -236,7 +236,7 @@ BI.VTapeLayout = BI.inherit(BI.Layout, {
if (BI.isNull(bottom[i])) { if (BI.isNull(bottom[i])) {
bottom[i] = bottom[i + 1] + (o.rowSize[i + 1] || items[i + 1].height) + (items[i + 1].bgap || 0) + 2 * (items[i + 1].vgap || 0) + o.vgap + o.tgap + o.bgap; bottom[i] = bottom[i + 1] + (o.rowSize[i + 1] || items[i + 1].height) + (items[i + 1].bgap || 0) + 2 * (items[i + 1].vgap || 0) + o.vgap + o.tgap + o.bgap;
} }
if (o.rowSize[i] < 1 && o.rowSize[i] >= 0) { if (o.rowSize[i] < 1 && o.rowSize[i] > 0) {
w.element.css({ w.element.css({
bottom: (bottom[i] * 100).toFixed(1) + "%", bottom: (bottom[i] * 100).toFixed(1) + "%",
height: (o.rowSize[i] * 100).toFixed(1) + "%" height: (o.rowSize[i] * 100).toFixed(1) + "%"

Loading…
Cancel
Save