@sapui5/sap.gantt 1.120.6 → 1.120.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sap/gantt/.library +1 -1
- package/src/sap/gantt/AdhocLine.js +1 -1
- package/src/sap/gantt/GanttChart.js +1 -1
- package/src/sap/gantt/GanttChartBase.js +1 -1
- package/src/sap/gantt/GanttChartContainer.js +1 -1
- package/src/sap/gantt/GanttChartWithTable.js +1 -1
- package/src/sap/gantt/axistime/AxisTimeStrategyBase.js +1 -1
- package/src/sap/gantt/axistime/FullScreenStrategy.js +1 -1
- package/src/sap/gantt/axistime/ProportionZoomStrategy.js +1 -1
- package/src/sap/gantt/axistime/StepwiseZoomStrategy.js +1 -1
- package/src/sap/gantt/changeHandlers/simple/AdhocLine.js +1 -1
- package/src/sap/gantt/changeHandlers/simple/DeltaLine.js +1 -1
- package/src/sap/gantt/changeHandlers/simple/GanttChartContainer.js +1 -1
- package/src/sap/gantt/changeHandlers/simple/GanttChartWithTable.js +1 -1
- package/src/sap/gantt/config/BirdEyeGroup.js +1 -1
- package/src/sap/gantt/config/ChartScheme.js +1 -1
- package/src/sap/gantt/config/ColumnAttribute.js +1 -1
- package/src/sap/gantt/config/ContainerLayout.js +1 -1
- package/src/sap/gantt/config/ExpandChart.js +1 -1
- package/src/sap/gantt/config/ExpandChartGroup.js +1 -1
- package/src/sap/gantt/config/GanttChartLayout.js +1 -1
- package/src/sap/gantt/config/Hierarchy.js +1 -1
- package/src/sap/gantt/config/HierarchyColumn.js +1 -1
- package/src/sap/gantt/config/LayoutGroup.js +1 -1
- package/src/sap/gantt/config/Locale.js +1 -1
- package/src/sap/gantt/config/Mode.js +1 -1
- package/src/sap/gantt/config/ModeGroup.js +1 -1
- package/src/sap/gantt/config/ObjectType.js +1 -1
- package/src/sap/gantt/config/SettingGroup.js +1 -1
- package/src/sap/gantt/config/SettingItem.js +1 -1
- package/src/sap/gantt/config/Shape.js +1 -1
- package/src/sap/gantt/config/TimeAxis.js +1 -1
- package/src/sap/gantt/config/TimeHorizon.js +1 -1
- package/src/sap/gantt/config/TimeZoomGroup.js +1 -1
- package/src/sap/gantt/config/ToolbarGroup.js +1 -1
- package/src/sap/gantt/config/ToolbarScheme.js +1 -1
- package/src/sap/gantt/control/Cell.js +1 -1
- package/src/sap/gantt/def/DefBase.js +1 -1
- package/src/sap/gantt/def/SvgDefs.js +1 -1
- package/src/sap/gantt/def/cal/Calendar.js +1 -1
- package/src/sap/gantt/def/cal/CalendarDefs.js +1 -1
- package/src/sap/gantt/def/cal/TimeInterval.js +1 -1
- package/src/sap/gantt/def/filter/MorphologyFilter.js +1 -1
- package/src/sap/gantt/def/gradient/LinearGradient.js +1 -1
- package/src/sap/gantt/def/gradient/RadialGradient.js +1 -1
- package/src/sap/gantt/def/gradient/Stop.js +1 -1
- package/src/sap/gantt/def/pattern/BackSlashPattern.js +1 -1
- package/src/sap/gantt/def/pattern/PatternBase.js +1 -1
- package/src/sap/gantt/def/pattern/SlashPattern.js +1 -1
- package/src/sap/gantt/drawer/Drawer.js +1 -1
- package/src/sap/gantt/eventHandler/AutoScrollHandler.js +1 -1
- package/src/sap/gantt/eventHandler/BirdEyeHandler.js +1 -1
- package/src/sap/gantt/eventHandler/MouseWheelHandler.js +1 -1
- package/src/sap/gantt/eventHandler/ShapeHoverHandler.js +1 -1
- package/src/sap/gantt/eventHandler/ShapeResizeHandler.js +1 -1
- package/src/sap/gantt/eventHandler/TimePeriodZoomHandler.js +1 -1
- package/src/sap/gantt/eventHandler/TimePopoverHandler.js +1 -1
- package/src/sap/gantt/legend/DimensionLegend.js +1 -1
- package/src/sap/gantt/legend/LegendBase.js +1 -1
- package/src/sap/gantt/legend/LegendContainer.js +1 -1
- package/src/sap/gantt/legend/ListLegend.js +1 -1
- package/src/sap/gantt/library.js +2 -2
- package/src/sap/gantt/messagebundle_sh.properties +30 -30
- package/src/sap/gantt/misc/AxisOrdinal.js +1 -1
- package/src/sap/gantt/misc/Format.js +2 -2
- package/src/sap/gantt/misc/Memoizer.js +1 -1
- package/src/sap/gantt/misc/RelativeTimeFormatter.js +1 -1
- package/src/sap/gantt/misc/ShapeManager.js +1 -1
- package/src/sap/gantt/misc/Utility.js +11 -0
- package/src/sap/gantt/overlays/GanttRowOverlay.js +84 -16
- package/src/sap/gantt/overlays/Overlay.js +1 -1
- package/src/sap/gantt/shape/Circle.js +1 -1
- package/src/sap/gantt/shape/ClipPath.js +1 -1
- package/src/sap/gantt/shape/Definitions.js +1 -1
- package/src/sap/gantt/shape/Group.js +1 -1
- package/src/sap/gantt/shape/Image.js +1 -1
- package/src/sap/gantt/shape/Line.js +1 -1
- package/src/sap/gantt/shape/Path.js +1 -1
- package/src/sap/gantt/shape/Polygon.js +1 -1
- package/src/sap/gantt/shape/Polyline.js +1 -1
- package/src/sap/gantt/shape/Rectangle.js +1 -1
- package/src/sap/gantt/shape/ResizeShadowShape.js +1 -1
- package/src/sap/gantt/shape/SelectedShape.js +1 -1
- package/src/sap/gantt/shape/Shape.js +1 -1
- package/src/sap/gantt/shape/Text.js +1 -1
- package/src/sap/gantt/shape/cal/Calendar.js +1 -1
- package/src/sap/gantt/shape/ext/Chevron.js +1 -1
- package/src/sap/gantt/shape/ext/Cursor.js +1 -1
- package/src/sap/gantt/shape/ext/Diamond.js +1 -1
- package/src/sap/gantt/shape/ext/Iconfont.js +1 -1
- package/src/sap/gantt/shape/ext/Pentangle.js +1 -1
- package/src/sap/gantt/shape/ext/TextRepeat.js +1 -1
- package/src/sap/gantt/shape/ext/Triangle.js +1 -1
- package/src/sap/gantt/shape/ext/rls/Relationship.js +1 -1
- package/src/sap/gantt/shape/ext/rls/SelectedRelationship.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcBorderPath.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcOverCapacityZonePolygon.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcPolygon.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcShortageCapacityPolygon.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcTooltipRectangle.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcUnderCapacityZonePolygon.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UbcUsedPolygon.js +1 -1
- package/src/sap/gantt/shape/ext/ubc/UtilizationBarChart.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcBorderPath.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcClipPath.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcClipingPath.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcDimension.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcMiddleLine.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcOverCapacityZoneRectangle.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcOverClipRectangle.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcRectangle.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcTooltipRectangle.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UlcUnderClipRectangle.js +1 -1
- package/src/sap/gantt/shape/ext/ulc/UtilizationLineChart.js +1 -1
- package/src/sap/gantt/simple/AdhocDiamond.js +1 -1
- package/src/sap/gantt/simple/AdhocLine.js +1 -1
- package/src/sap/gantt/simple/AggregationUtils.js +19 -66
- package/src/sap/gantt/simple/BaseCalendar.js +1 -1
- package/src/sap/gantt/simple/BaseChevron.js +1 -1
- package/src/sap/gantt/simple/BaseConditionalShape.js +1 -1
- package/src/sap/gantt/simple/BaseCursor.js +7 -7
- package/src/sap/gantt/simple/BaseDeltaRectangle.js +4 -4
- package/src/sap/gantt/simple/BaseDiamond.js +1 -1
- package/src/sap/gantt/simple/BaseGroup.js +1 -1
- package/src/sap/gantt/simple/BaseImage.js +1 -1
- package/src/sap/gantt/simple/BaseLine.js +1 -1
- package/src/sap/gantt/simple/BasePath.js +1 -1
- package/src/sap/gantt/simple/BasePseudoShape.js +1 -1
- package/src/sap/gantt/simple/BaseRectangle.js +2 -2
- package/src/sap/gantt/simple/BaseShape.js +10 -4
- package/src/sap/gantt/simple/BaseText.js +1 -1
- package/src/sap/gantt/simple/BaseTriangle.js +1 -1
- package/src/sap/gantt/simple/ContainerToolbar.js +1 -1
- package/src/sap/gantt/simple/ContainerToolbarPlaceholder.js +1 -1
- package/src/sap/gantt/simple/CoordinateUtils.js +1 -1
- package/src/sap/gantt/simple/CustomVariantHandler.js +1 -1
- package/src/sap/gantt/simple/DeltaLine.js +1 -1
- package/src/sap/gantt/simple/ExpandModel.js +1 -3
- package/src/sap/gantt/simple/GanttAdaptationData.js +1 -1
- package/src/sap/gantt/simple/GanttChartContainer.js +1 -1
- package/src/sap/gantt/simple/GanttChartWithTable.js +35 -1
- package/src/sap/gantt/simple/GanttDragDropExtension.js +8 -1
- package/src/sap/gantt/simple/GanttExtension.js +1 -1
- package/src/sap/gantt/simple/GanttHeader.js +1 -1
- package/src/sap/gantt/simple/GanttPointerExtension.js +1 -1
- package/src/sap/gantt/simple/GanttPopoverExtension.js +1 -1
- package/src/sap/gantt/simple/GanttPrinting.js +3 -2
- package/src/sap/gantt/simple/GanttRowAction.js +1 -1
- package/src/sap/gantt/simple/GanttRowSettings.js +30 -1
- package/src/sap/gantt/simple/GanttUtils.js +1 -1
- package/src/sap/gantt/simple/GanttZoomExtension.js +4 -4
- package/src/sap/gantt/simple/InnerGanttChart.js +1 -1
- package/src/sap/gantt/simple/LegendContainer.js +1 -1
- package/src/sap/gantt/simple/LegendShapeGroup.js +1 -1
- package/src/sap/gantt/simple/MultiActivityGroup.js +1 -1
- package/src/sap/gantt/simple/MultiActivityRowSettings.js +1 -1
- package/src/sap/gantt/simple/Relationship.js +1 -1
- package/src/sap/gantt/simple/ShapeScheme.js +1 -1
- package/src/sap/gantt/simple/StockChart.js +1 -1
- package/src/sap/gantt/simple/StockChartDimension.js +1 -1
- package/src/sap/gantt/simple/StockChartPeriod.js +1 -1
- package/src/sap/gantt/simple/UtilizationBarChart.js +1 -1
- package/src/sap/gantt/simple/UtilizationChart.js +1 -1
- package/src/sap/gantt/simple/UtilizationDimension.js +1 -1
- package/src/sap/gantt/simple/UtilizationLineChart.js +1 -1
- package/src/sap/gantt/simple/UtilizationPeriod.js +1 -1
- package/src/sap/gantt/simple/shapes/Shape.js +8 -5
- package/src/sap/gantt/simple/shapes/Task.js +1 -1
|
@@ -168,7 +168,7 @@ sap.ui.define([
|
|
|
168
168
|
* @extend sap.ui.core.Control
|
|
169
169
|
*
|
|
170
170
|
* @author SAP SE
|
|
171
|
-
* @version 1.120.
|
|
171
|
+
* @version 1.120.7
|
|
172
172
|
* @since 1.60
|
|
173
173
|
*
|
|
174
174
|
* @constructor
|
|
@@ -3844,6 +3844,7 @@ sap.ui.define([
|
|
|
3844
3844
|
|
|
3845
3845
|
var oPrimaryScheme = this.getPrimaryShapeScheme();
|
|
3846
3846
|
|
|
3847
|
+
this._syncRowExpandState(vRowIndex, bExpanded, bPseudoShapeExpand);
|
|
3847
3848
|
this._bExpandToggled = this._oExpandModel.isTableRowHeightNeedChange(bExpanded, this.getTable(), aIndices, oPrimaryScheme, aExpandScheme);
|
|
3848
3849
|
if (this._bExpandToggled) {
|
|
3849
3850
|
if (this.getEnablePseudoShapes()){
|
|
@@ -3851,6 +3852,8 @@ sap.ui.define([
|
|
|
3851
3852
|
}
|
|
3852
3853
|
this._createInnerGanttRenderPromise();
|
|
3853
3854
|
this.getTable().invalidate();
|
|
3855
|
+
} else {
|
|
3856
|
+
this._syncRowExpandState(vRowIndex, !bExpanded, bPseudoShapeExpand);
|
|
3854
3857
|
}
|
|
3855
3858
|
};
|
|
3856
3859
|
|
|
@@ -4580,6 +4583,37 @@ sap.ui.define([
|
|
|
4580
4583
|
}
|
|
4581
4584
|
};
|
|
4582
4585
|
|
|
4586
|
+
/**
|
|
4587
|
+
* sync the row expand state with the row settings
|
|
4588
|
+
* @param {number} vRowIndex row indices
|
|
4589
|
+
* @param {boolean} bExpanded whether is to expand or not
|
|
4590
|
+
* @param {boolean} bPseudoShapeExpand whether pseudo shape is enabled or not
|
|
4591
|
+
* @private
|
|
4592
|
+
*/
|
|
4593
|
+
GanttChartWithTable.prototype._syncRowExpandState = function(vRowIndex, bExpanded, bPseudoShapeExpand) {
|
|
4594
|
+
var aRows = this.getTable().getRows(), aRowIndices = [];
|
|
4595
|
+
|
|
4596
|
+
if (typeof vRowIndex === "number") {
|
|
4597
|
+
aRowIndices = [vRowIndex];
|
|
4598
|
+
} else if (Array.isArray(vRowIndex)) {
|
|
4599
|
+
aRowIndices = vRowIndex;
|
|
4600
|
+
}
|
|
4601
|
+
|
|
4602
|
+
var iStartIndex = aRows[0].getIndex();
|
|
4603
|
+
|
|
4604
|
+
aRowIndices.forEach(function(iIndex){
|
|
4605
|
+
var oRow = aRows[iIndex - iStartIndex];
|
|
4606
|
+
var oRowSettings = oRow && oRow.getAggregation("_settings");
|
|
4607
|
+
|
|
4608
|
+
if (oRowSettings) {
|
|
4609
|
+
oRowSettings._onRowExpandToggle({
|
|
4610
|
+
expanded: bExpanded,
|
|
4611
|
+
pseudoShapeExpand: bPseudoShapeExpand
|
|
4612
|
+
});
|
|
4613
|
+
}
|
|
4614
|
+
});
|
|
4615
|
+
};
|
|
4616
|
+
|
|
4583
4617
|
return GanttChartWithTable;
|
|
4584
4618
|
|
|
4585
4619
|
}, true);
|
|
@@ -96,7 +96,7 @@ sap.ui.define([
|
|
|
96
96
|
*
|
|
97
97
|
* @extends sap.gantt.simple.GanttExtension
|
|
98
98
|
* @author SAP SE
|
|
99
|
-
* @version 1.120.
|
|
99
|
+
* @version 1.120.7
|
|
100
100
|
* @constructor
|
|
101
101
|
* @private
|
|
102
102
|
* @alias sap.gantt.simple.GanttExtension
|
|
@@ -349,6 +349,10 @@ sap.ui.define([
|
|
|
349
349
|
endTime: oDraggedShape.getEndTime()
|
|
350
350
|
};
|
|
351
351
|
|
|
352
|
+
if (this.oSourceRow) {
|
|
353
|
+
this.oSourceRow.destroy();
|
|
354
|
+
}
|
|
355
|
+
|
|
352
356
|
//Set SourceRow = Row instance from where the shape is dragged
|
|
353
357
|
this.oSourceRow = this.getRowByShape(oDraggedShape);
|
|
354
358
|
|
|
@@ -369,6 +373,9 @@ sap.ui.define([
|
|
|
369
373
|
this._bEnableRowHighlight = oDraggedShape.getDragHighlightRows().length > 0 && !this.bMultipleGhosts;
|
|
370
374
|
|
|
371
375
|
DragDropHelper.addDragDropEventListeners(this.getGantt());
|
|
376
|
+
} else if (this.oSourceRow) {
|
|
377
|
+
this.oSourceRow.destroy();
|
|
378
|
+
this.oSourceRow = undefined;
|
|
372
379
|
}
|
|
373
380
|
};
|
|
374
381
|
|
|
@@ -146,7 +146,7 @@ sap.ui.define([
|
|
|
146
146
|
* @extend sap.ui.core.Element
|
|
147
147
|
*
|
|
148
148
|
* @author SAP SE
|
|
149
|
-
* @version 1.120.
|
|
149
|
+
* @version 1.120.7
|
|
150
150
|
* @since 1.66
|
|
151
151
|
*
|
|
152
152
|
* @constructor
|
|
@@ -2583,7 +2583,8 @@ sap.ui.define([
|
|
|
2583
2583
|
}
|
|
2584
2584
|
|
|
2585
2585
|
var oGanttChartSvg = this._oDomToPrint[counter].getElementsByClassName("sapGanttChartSvg")[0].cloneNode(true);
|
|
2586
|
-
var
|
|
2586
|
+
var oSvgDefs = this._getOriginalGanttChart().getDomRef() ? this._getOriginalGanttChart().getDomRef().getElementsByClassName("sapGanttChartSvgDefs") : null;
|
|
2587
|
+
var oGanttChartSvgDef = (oSvgDefs && oSvgDefs.length > 0) ? oSvgDefs[0].cloneNode(true) : null;
|
|
2587
2588
|
|
|
2588
2589
|
//Redrawing the vertical lines
|
|
2589
2590
|
if (oGanttChartSvg.getElementsByClassName("sapGanttChartVerticalLine") && oGanttChartSvg.getElementsByClassName("sapGanttChartVerticalLine").length) {
|
|
@@ -27,7 +27,7 @@ sap.ui.define([
|
|
|
27
27
|
* @extends sap.ui.table.RowSettings
|
|
28
28
|
*
|
|
29
29
|
* @author SAP SE
|
|
30
|
-
* @version 1.120.
|
|
30
|
+
* @version 1.120.7
|
|
31
31
|
*
|
|
32
32
|
* @constructor
|
|
33
33
|
* @public
|
|
@@ -286,5 +286,34 @@ sap.ui.define([
|
|
|
286
286
|
return this;
|
|
287
287
|
};
|
|
288
288
|
|
|
289
|
+
GanttRowSettings.prototype._onRowExpandToggle = function(oExpandInfo) {
|
|
290
|
+
if (!oExpandInfo) {
|
|
291
|
+
return;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
if (this._oRowExpandInfo && (this._oRowExpandInfo.expanded === oExpandInfo.expanded && this._oRowExpandInfo.pseudoShapeExpand === oExpandInfo.pseudoShapeExpand)) {
|
|
295
|
+
return;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
this._oRowExpandInfo = oExpandInfo;
|
|
299
|
+
|
|
300
|
+
if (this._isExpanded()) {
|
|
301
|
+
this._handleEvent(new jQuery.Event("RowExpanded"));
|
|
302
|
+
} else {
|
|
303
|
+
this._handleEvent(new jQuery.Event("RowCollapsed"));
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
GanttRowSettings.prototype._isExpanded = function() {
|
|
308
|
+
return this._oRowExpandInfo && (this._oRowExpandInfo.expanded && !this._oRowExpandInfo.pseudoShapeExpand);
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
GanttRowSettings.prototype.clone = function () {
|
|
312
|
+
var oClone = TableRowSettings.prototype.clone.call(this);
|
|
313
|
+
oClone._oRowExpandInfo = this._oRowExpandInfo;
|
|
314
|
+
|
|
315
|
+
return oClone;
|
|
316
|
+
};
|
|
317
|
+
|
|
289
318
|
return GanttRowSettings;
|
|
290
319
|
});
|
|
@@ -77,7 +77,7 @@ sap.ui.define([
|
|
|
77
77
|
oGanttDom = mDom.gantt,
|
|
78
78
|
oHeaderSvg = mDom.headerSvg;
|
|
79
79
|
var fnBindEventToDom = function(sEventName, oDom) {
|
|
80
|
-
jQuery(oDom).
|
|
80
|
+
jQuery(oDom).on(sEventName, GanttZoomHelper.dispatch.bind(oGantt));
|
|
81
81
|
};
|
|
82
82
|
|
|
83
83
|
// before binding events, first clear all to prevent duplicate event registered
|
|
@@ -159,9 +159,9 @@ sap.ui.define([
|
|
|
159
159
|
oGanttSvg = mDom.ganttSvg,
|
|
160
160
|
oGanttDom = mDom.gantt,
|
|
161
161
|
oHeaderSvg = mDom.headerSvg;
|
|
162
|
-
jQuery(oGanttSvg).
|
|
163
|
-
jQuery(oHeaderSvg).
|
|
164
|
-
jQuery(oGanttDom).
|
|
162
|
+
jQuery(oGanttSvg).off(sNameSpace);
|
|
163
|
+
jQuery(oHeaderSvg).off(sNameSpace);
|
|
164
|
+
jQuery(oGanttDom).off(sNameSpace);
|
|
165
165
|
jQuery(document).off(sNameSpace);
|
|
166
166
|
|
|
167
167
|
}
|
|
@@ -6,11 +6,14 @@
|
|
|
6
6
|
*/
|
|
7
7
|
sap.ui.define([
|
|
8
8
|
"sap/gantt/simple/BaseShape",
|
|
9
|
-
"sap/ui/thirdparty/jquery",
|
|
10
9
|
"sap/gantt/misc/Format",
|
|
11
10
|
"sap/ui/core/theming/Parameters",
|
|
12
|
-
"sap/ui/core/Core"
|
|
13
|
-
|
|
11
|
+
"sap/ui/core/Core",
|
|
12
|
+
"sap/gantt/utils/GanttChartConfigurationUtils",
|
|
13
|
+
"sap/ui/core/RenderManager",
|
|
14
|
+
"sap/gantt/misc/Utility"
|
|
15
|
+
], function (BaseShape, Format, Parameters, Core,
|
|
16
|
+
GanttChartConfigurationUtils, RenderManager, Utility) {
|
|
14
17
|
"use strict";
|
|
15
18
|
|
|
16
19
|
var DEFAULT_ROW_PADDING = 12;
|
|
@@ -30,7 +33,7 @@ sap.ui.define([
|
|
|
30
33
|
* @extends sap.gantt.simple.BaseShape
|
|
31
34
|
*
|
|
32
35
|
* @author SAP SE
|
|
33
|
-
* @version 1.120.
|
|
36
|
+
* @version 1.120.7
|
|
34
37
|
*
|
|
35
38
|
* @abstract
|
|
36
39
|
* @constructor
|
|
@@ -217,7 +220,7 @@ sap.ui.define([
|
|
|
217
220
|
var startTime = oAxisTime.timeToView(Format.abapTimestampToDate(this.getTime())),
|
|
218
221
|
endTime = oAxisTime.timeToView(Format.abapTimestampToDate(this.getEndTime()));
|
|
219
222
|
|
|
220
|
-
if (
|
|
223
|
+
if (Utility.isNumeric(startTime) && Utility.isNumeric(endTime)) {
|
|
221
224
|
return Math.abs(endTime - startTime);
|
|
222
225
|
} else {
|
|
223
226
|
return 0;
|