@openui5/sap.uxap 1.111.2 → 1.111.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openui5/sap.uxap",
3
- "version": "1.111.2",
3
+ "version": "1.111.3",
4
4
  "description": "OpenUI5 UI Library sap.uxap",
5
5
  "author": "SAP SE (https://www.sap.com)",
6
6
  "license": "Apache-2.0",
@@ -14,9 +14,9 @@
14
14
  "url": "https://github.com/SAP/openui5.git"
15
15
  },
16
16
  "dependencies": {
17
- "@openui5/sap.f": "1.111.2",
18
- "@openui5/sap.m": "1.111.2",
19
- "@openui5/sap.ui.core": "1.111.2",
20
- "@openui5/sap.ui.layout": "1.111.2"
17
+ "@openui5/sap.f": "1.111.3",
18
+ "@openui5/sap.m": "1.111.3",
19
+ "@openui5/sap.ui.core": "1.111.3",
20
+ "@openui5/sap.ui.layout": "1.111.3"
21
21
  }
22
22
  }
@@ -3,7 +3,7 @@
3
3
 
4
4
  <name>sap.uxap</name>
5
5
  <vendor>SAP SE</vendor>
6
- <version>1.111.2</version>
6
+ <version>1.111.3</version>
7
7
  <copyright>OpenUI5
8
8
  * (c) Copyright 2009-2023 SAP SE or an SAP affiliate company.
9
9
  * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.</copyright>
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  *
22
22
  * @class
23
23
  * @author SAP SE
24
- * @version 1.111.2
24
+ * @version 1.111.3
25
25
  * @since 1.26
26
26
  * @alias sap.uxap.BlockBaseMetadata
27
27
  * @extends sap.ui.core.ElementMetadata
@@ -22,7 +22,7 @@ sap.ui.define(['sap/ui/core/Element', './library'],
22
22
  * @extends sap.ui.core.Element
23
23
  *
24
24
  * @author SAP SE
25
- * @version 1.111.2
25
+ * @version 1.111.3
26
26
  *
27
27
  * @constructor
28
28
  * @public
@@ -40,7 +40,7 @@ sap.ui.define([
40
40
  * @implements sap.uxap.IHeaderContent
41
41
  *
42
42
  * @author SAP SE
43
- * @version 1.111.2
43
+ * @version 1.111.3
44
44
  *
45
45
  * @constructor
46
46
  * @public
@@ -42,7 +42,7 @@ sap.ui.define([
42
42
  * @implements sap.uxap.IHeaderTitle
43
43
  *
44
44
  * @author SAP SE
45
- * @version 1.111.2
45
+ * @version 1.111.3
46
46
  *
47
47
  * @constructor
48
48
  * @public
@@ -1375,8 +1375,49 @@ sap.ui.define([
1375
1375
  horizontal: false,
1376
1376
  vertical: true
1377
1377
  });
1378
+
1379
+ this._oScroller.setOnAfterScrollToElement(this._onAfterScrollToElement.bind(this));
1378
1380
  };
1379
1381
 
1382
+ /**
1383
+ * Callback for the end of the scroll triggered from <code>scrollToElement</code>
1384
+ * of <code>sap.ui.core.delegate.ScrollEnablement</code>.
1385
+ *
1386
+ * Required for Safari and IE11 (where there is no browser automatic scroll adjustment,
1387
+ * see <code>overflow-anchor</code> CSS property).
1388
+ *
1389
+ * The execution of <code>scrollToElement</code> changes the current scroll position,
1390
+ * so we check if the new scroll position entails subsequent change of the scroll
1391
+ * container of our page(namely: snapping of the header, which involves removal
1392
+ * of the anchorBar from the top of the scroll container and placing it
1393
+ * in the title area above the scroll container instead).
1394
+ *
1395
+ * If such a change (namely, removal of the anchorBar from the top of the scroll container)
1396
+ * should occur, then the content bellow the removed anchorBar will became offset with X pixels,
1397
+ * where X is the anchorBar height => the element [provided to <code>scrollToElement </code>]
1398
+ * will be misplaced as a result.
1399
+ *
1400
+ * Therefore here we synchronously call the listener to the "scroll" event to check if
1401
+ * it entails the above snapping and subsequent misplacement => if it entails it,
1402
+ * then we adjust back the scroll position to correct the misplacement of the scrolled element.
1403
+ *
1404
+ * @private
1405
+ */
1406
+ ObjectPageLayout.prototype._onAfterScrollToElement = function () {
1407
+ var iScrollTop = this._$opWrapper.scrollTop(),
1408
+ bStickyAnchorBarBefore = this._bStickyAnchorBar;
1409
+
1410
+ // synchronously call the listener for the "scroll" event, to trigger any pending toggling of the header
1411
+ this._onScroll({ target: { scrollTop: iScrollTop}});
1412
+
1413
+ // if the anchorBar was sticked (removed from the topmost part of the scrollable area) =>
1414
+ // all elements bellow it became offset with X pixels, where X is the anchorBar height =>
1415
+ // the element (target of <code>scrollToElement</code>) was offset respectively =>
1416
+ // adjust the scroll position to ensure the element is back visible (outside scroll overflow)
1417
+ if (this._bStickyAnchorBar && !bStickyAnchorBarBefore && this._$opWrapper.scrollTop() === iScrollTop) {
1418
+ this._$opWrapper.scrollTop(iScrollTop - this.iAnchorBarHeight);
1419
+ }
1420
+ };
1380
1421
  /**
1381
1422
  * Sets the section that should be selected.
1382
1423
  *
@@ -37,7 +37,7 @@ sap.ui.define([
37
37
  * @extends sap.ui.core.Element
38
38
  *
39
39
  * @author SAP SE
40
- * @version 1.111.2
40
+ * @version 1.111.3
41
41
  *
42
42
  * @constructor
43
43
  * @public
@@ -21,7 +21,7 @@ sap.ui.define([
21
21
  * @constructor
22
22
  * @alias sap.uxap.changeHandler.AddIFrameObjectPageLayout
23
23
  * @author SAP SE
24
- * @version 1.111.2
24
+ * @version 1.111.3
25
25
  * @since 1.75
26
26
  * @experimental Since 1.75
27
27
  */
@@ -13,7 +13,7 @@ sap.ui.define(["sap/ui/fl/changeHandler/MoveControls", "sap/ui/core/Core", "sap/
13
13
  * @constructor
14
14
  * @alias sap.uxap.changeHandler.MoveObjectPageSection
15
15
  * @author SAP SE
16
- * @version 1.111.2
16
+ * @version 1.111.3
17
17
  * @experimental Since 1.54
18
18
  */
19
19
 
@@ -19,7 +19,7 @@ sap.ui.define([
19
19
  * @constructor
20
20
  * @alias sap.uxap.changeHandler.RenameObjectPageSection
21
21
  * @author SAP SE
22
- * @version 1.111.2
22
+ * @version 1.111.3
23
23
  * @experimental Since 1.50
24
24
  */
25
25
 
@@ -25,7 +25,7 @@ sap.ui.define([
25
25
  * @namespace
26
26
  * @alias sap.uxap
27
27
  * @author SAP SE
28
- * @version 1.111.2
28
+ * @version 1.111.3
29
29
  * @since 1.36
30
30
  * @public
31
31
  */
@@ -68,7 +68,7 @@ sap.ui.define([
68
68
  "sap.uxap.ObjectPageHeaderLayoutData",
69
69
  "sap.uxap.ObjectPageLazyLoader"
70
70
  ],
71
- version: "1.111.2",
71
+ version: "1.111.3",
72
72
  extensions: {
73
73
  flChangeHandlers: {
74
74
  "sap.uxap.ObjectPageHeader": "sap/uxap/flexibility/ObjectPageHeader",