|
@@ -85,7 +85,7 @@ JpcFlowTabSrv.prototype.createNew = function(){
|
|
|
if (segAutoHeightInfo[segIdx].length > startRecIdx + vi) {
|
|
|
couldBreak = private_addAutoHeightPageValue(vi);
|
|
|
// if (couldBreak) break;
|
|
|
- } else if (vIdx.length < maxRecPerPage) {
|
|
|
+ } else if (vIdx.length > 0 && vIdx.length < maxRecPerPage) {
|
|
|
vIdx.push([followMode, JV.DISPLAY_VAL_TYPE_NORMAL, JV.BLANK_VALUE_INDEX]);
|
|
|
}
|
|
|
} else {
|
|
@@ -637,7 +637,7 @@ JpcFlowTabSrv.prototype.createNew = function(){
|
|
|
if (currentRecAmt + accAutoHeightAmt + adHocAutoHeightAmt + maxRowRec >= ttlSegRecAmt) {
|
|
|
pageStatus[JV.STATUS_SEGMENT_END] = true;
|
|
|
private_resetBandArea();
|
|
|
- let hasAdHocRow = !JpcFlowTabHelper.chkSegEnd(bands, rptTpl, ttlSegRecAmt, currentRecAmt + adHocAutoHeightAmt, maxRowRec, me.isEx);
|
|
|
+ let hasAdHocRow = !JpcFlowTabHelper.chkSegEnd(bands, rptTpl, ttlSegRecAmt, currentRecAmt + accAutoHeightAmt + adHocAutoHeightAmt, maxRowRec, me.isEx);
|
|
|
if (hasAdHocRow) {
|
|
|
//add page info(pre segment end)
|
|
|
pageStatus[JV.STATUS_SEGMENT_END] = false;
|
|
@@ -655,7 +655,7 @@ JpcFlowTabSrv.prototype.createNew = function(){
|
|
|
if (currentRecAmt + accAutoHeightAmt + adHocAutoHeightAmt + maxRowRec >= ttlSegRecAmt) {
|
|
|
pageStatus[JV.STATUS_SEGMENT_END] = true;
|
|
|
private_resetBandArea();
|
|
|
- let hasAdHocRow = !JpcFlowTabHelper.chkSegEnd(bands, rptTpl, ttlSegRecAmt, currentRecAmt + adHocAutoHeightAmt, maxRowRec, me.isEx);
|
|
|
+ let hasAdHocRow = !JpcFlowTabHelper.chkSegEnd(bands, rptTpl, ttlSegRecAmt, currentRecAmt + accAutoHeightAmt + adHocAutoHeightAmt, maxRowRec, me.isEx);
|
|
|
if (hasAdHocRow) {
|
|
|
//add page info(pre segment end)
|
|
|
pageStatus[JV.STATUS_SEGMENT_END] = false;
|