@openui5/sap.m 1.71.46 → 1.71.47
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/LICENSE.txt +1 -1
- package/package.json +4 -4
- package/src/sap/m/.library +1 -1
- package/src/sap/m/AccButton.js +1 -1
- package/src/sap/m/ActionListItem.js +1 -1
- package/src/sap/m/ActionSelect.js +1 -1
- package/src/sap/m/ActionSheet.js +1 -1
- package/src/sap/m/App.js +1 -1
- package/src/sap/m/AssociativeOverflowToolbar.js +1 -1
- package/src/sap/m/Bar.js +1 -1
- package/src/sap/m/Breadcrumbs.js +1 -1
- package/src/sap/m/BusyDialog.js +1 -1
- package/src/sap/m/BusyIndicator.js +1 -1
- package/src/sap/m/Button.js +1 -1
- package/src/sap/m/Carousel.js +1 -1
- package/src/sap/m/CarouselLayout.js +1 -1
- package/src/sap/m/CheckBox.js +1 -1
- package/src/sap/m/ColorPalette.js +1 -1
- package/src/sap/m/ColorPalettePopover.js +1 -1
- package/src/sap/m/Column.js +1 -1
- package/src/sap/m/ColumnHeaderPopover.js +1 -1
- package/src/sap/m/ColumnListItem.js +1 -1
- package/src/sap/m/ColumnPopoverActionItem.js +1 -1
- package/src/sap/m/ColumnPopoverCustomItem.js +1 -1
- package/src/sap/m/ColumnPopoverItem.js +1 -1
- package/src/sap/m/ColumnPopoverSortItem.js +1 -1
- package/src/sap/m/ComboBox.js +1 -1
- package/src/sap/m/ComboBoxBase.js +1 -1
- package/src/sap/m/ComboBoxTextField.js +1 -1
- package/src/sap/m/CustomListItem.js +1 -1
- package/src/sap/m/CustomTile.js +1 -1
- package/src/sap/m/CustomTreeItem.js +1 -1
- package/src/sap/m/DatePicker.js +1 -1
- package/src/sap/m/DateRangeSelection.js +2 -2
- package/src/sap/m/DateTimeField.js +1 -1
- package/src/sap/m/DateTimeInput.js +1 -1
- package/src/sap/m/DateTimePicker.js +1 -1
- package/src/sap/m/Dialog.js +161 -44
- package/src/sap/m/DialogRenderer.js +3 -2
- package/src/sap/m/DisplayListItem.js +1 -1
- package/src/sap/m/DraftIndicator.js +1 -1
- package/src/sap/m/FacetFilter.js +1 -1
- package/src/sap/m/FacetFilterItem.js +1 -1
- package/src/sap/m/FacetFilterList.js +1 -1
- package/src/sap/m/FeedContent.js +1 -1
- package/src/sap/m/FeedInput.js +1 -1
- package/src/sap/m/FeedListItem.js +1 -1
- package/src/sap/m/FeedListItemAction.js +1 -1
- package/src/sap/m/Fiori20Adapter.js +2 -2
- package/src/sap/m/FlexBox.js +1 -1
- package/src/sap/m/FlexItemData.js +1 -1
- package/src/sap/m/FormattedText.js +1 -1
- package/src/sap/m/GenericTag.js +1 -1
- package/src/sap/m/GenericTile.js +1 -1
- package/src/sap/m/GroupHeaderListItem.js +1 -1
- package/src/sap/m/GrowingList.js +1 -1
- package/src/sap/m/HBox.js +1 -1
- package/src/sap/m/HeaderContainer.js +1 -1
- package/src/sap/m/HeaderContainerItemNavigator.js +1 -1
- package/src/sap/m/IconTabBar.js +1 -1
- package/src/sap/m/IconTabBarSelectList.js +1 -1
- package/src/sap/m/IconTabFilter.js +1 -1
- package/src/sap/m/IconTabHeader.js +1 -1
- package/src/sap/m/IconTabSeparator.js +1 -1
- package/src/sap/m/Image.js +1 -1
- package/src/sap/m/ImageContent.js +1 -1
- package/src/sap/m/Input.js +1 -1
- package/src/sap/m/InputBase.js +1 -1
- package/src/sap/m/InputListItem.js +1 -1
- package/src/sap/m/Label.js +1 -1
- package/src/sap/m/LightBox.js +1 -1
- package/src/sap/m/LightBoxItem.js +1 -1
- package/src/sap/m/Link.js +2 -2
- package/src/sap/m/LinkRenderer.js +1 -2
- package/src/sap/m/List.js +1 -1
- package/src/sap/m/ListBase.js +1 -1
- package/src/sap/m/ListItemBase.js +1 -1
- package/src/sap/m/MaskEnabler.js +1 -1
- package/src/sap/m/MaskInput.js +1 -1
- package/src/sap/m/MaskInputRule.js +1 -1
- package/src/sap/m/Menu.js +1 -1
- package/src/sap/m/MenuButton.js +1 -1
- package/src/sap/m/MenuItem.js +1 -1
- package/src/sap/m/MenuListItem.js +1 -1
- package/src/sap/m/MessageItem.js +1 -1
- package/src/sap/m/MessageListItem.js +1 -1
- package/src/sap/m/MessagePage.js +1 -1
- package/src/sap/m/MessagePopover.js +1 -1
- package/src/sap/m/MessagePopoverItem.js +1 -1
- package/src/sap/m/MessageStrip.js +1 -1
- package/src/sap/m/MessageToast.js +1 -1
- package/src/sap/m/MessageView.js +1 -1
- package/src/sap/m/MultiComboBox.js +1 -1
- package/src/sap/m/MultiEditField.js +1 -1
- package/src/sap/m/MultiInput.js +1 -1
- package/src/sap/m/NavContainer.js +1 -1
- package/src/sap/m/NewsContent.js +1 -1
- package/src/sap/m/NotificationListBase.js +1 -1
- package/src/sap/m/NotificationListGroup.js +1 -1
- package/src/sap/m/NotificationListItem.js +1 -1
- package/src/sap/m/NumericContent.js +1 -1
- package/src/sap/m/ObjectAttribute.js +1 -1
- package/src/sap/m/ObjectHeader.js +1 -1
- package/src/sap/m/ObjectIdentifier.js +1 -1
- package/src/sap/m/ObjectListItem.js +1 -1
- package/src/sap/m/ObjectMarker.js +1 -1
- package/src/sap/m/ObjectNumber.js +1 -1
- package/src/sap/m/ObjectStatus.js +1 -1
- package/src/sap/m/OverflowToolbar.js +1 -1
- package/src/sap/m/OverflowToolbarAssociativePopover.js +4 -2
- package/src/sap/m/OverflowToolbarButton.js +1 -1
- package/src/sap/m/OverflowToolbarLayoutData.js +1 -1
- package/src/sap/m/OverflowToolbarToggleButton.js +1 -1
- package/src/sap/m/P13nAnyFilterItem.js +1 -1
- package/src/sap/m/P13nColumnsItem.js +1 -1
- package/src/sap/m/P13nColumnsPanel.js +1 -1
- package/src/sap/m/P13nConditionPanel.js +6 -1
- package/src/sap/m/P13nDialog.js +1 -1
- package/src/sap/m/P13nDimMeasureItem.js +1 -1
- package/src/sap/m/P13nDimMeasurePanel.js +1 -1
- package/src/sap/m/P13nFilterItem.js +1 -1
- package/src/sap/m/P13nFilterPanel.js +1 -1
- package/src/sap/m/P13nGroupItem.js +1 -1
- package/src/sap/m/P13nGroupPanel.js +1 -1
- package/src/sap/m/P13nItem.js +1 -1
- package/src/sap/m/P13nPanel.js +1 -1
- package/src/sap/m/P13nSelectionItem.js +1 -1
- package/src/sap/m/P13nSelectionPanel.js +1 -1
- package/src/sap/m/P13nSortItem.js +1 -1
- package/src/sap/m/P13nSortPanel.js +1 -1
- package/src/sap/m/PDFViewer.js +1 -1
- package/src/sap/m/Page.js +1 -1
- package/src/sap/m/PageAccessibleLandmarkInfo.js +1 -1
- package/src/sap/m/PagingButton.js +1 -1
- package/src/sap/m/Panel.js +1 -1
- package/src/sap/m/PlanningCalendar.js +1 -1
- package/src/sap/m/PlanningCalendarHeader.js +1 -1
- package/src/sap/m/PlanningCalendarLegend.js +1 -1
- package/src/sap/m/PlanningCalendarRow.js +1 -1
- package/src/sap/m/PlanningCalendarView.js +1 -1
- package/src/sap/m/Popover.js +112 -70
- package/src/sap/m/ProgressIndicator.js +1 -1
- package/src/sap/m/PullToRefresh.js +1 -1
- package/src/sap/m/QuickView.js +1 -1
- package/src/sap/m/QuickViewBase.js +1 -1
- package/src/sap/m/QuickViewCard.js +1 -1
- package/src/sap/m/QuickViewGroup.js +1 -1
- package/src/sap/m/QuickViewGroupElement.js +1 -1
- package/src/sap/m/QuickViewPage.js +1 -1
- package/src/sap/m/RadioButton.js +148 -212
- package/src/sap/m/RadioButtonGroup.js +66 -64
- package/src/sap/m/RadioButtonGroupRenderer.js +31 -38
- package/src/sap/m/RadioButtonRenderer.js +94 -108
- package/src/sap/m/RangeSlider.js +1 -1
- package/src/sap/m/RatingIndicator.js +1 -1
- package/src/sap/m/ResponsivePopover.js +1 -1
- package/src/sap/m/ResponsiveScale.js +1 -1
- package/src/sap/m/ScrollBar.js +1 -1
- package/src/sap/m/ScrollContainer.js +1 -1
- package/src/sap/m/SearchField.js +1 -1
- package/src/sap/m/SegmentedButton.js +1 -1
- package/src/sap/m/SegmentedButtonItem.js +1 -1
- package/src/sap/m/Select.js +1 -1
- package/src/sap/m/SelectDialog.js +1 -1
- package/src/sap/m/SelectList.js +1 -1
- package/src/sap/m/SelectionDetails.js +1 -1
- package/src/sap/m/SelectionDetailsFacade.js +2 -2
- package/src/sap/m/SelectionDetailsItem.js +1 -1
- package/src/sap/m/SelectionDetailsItemLine.js +1 -1
- package/src/sap/m/Shell.js +1 -1
- package/src/sap/m/SimpleFixFlex.js +1 -1
- package/src/sap/m/SinglePlanningCalendar.js +1 -1
- package/src/sap/m/SinglePlanningCalendarDayView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarGrid.js +1 -1
- package/src/sap/m/SinglePlanningCalendarMonthGrid.js +1 -1
- package/src/sap/m/SinglePlanningCalendarMonthView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarWeekView.js +1 -1
- package/src/sap/m/SinglePlanningCalendarWorkWeekView.js +1 -1
- package/src/sap/m/SlideTile.js +1 -1
- package/src/sap/m/Slider.js +1 -1
- package/src/sap/m/SliderTooltip.js +1 -1
- package/src/sap/m/SliderTooltipBase.js +1 -1
- package/src/sap/m/SliderTooltipContainer.js +1 -1
- package/src/sap/m/SplitApp.js +1 -1
- package/src/sap/m/SplitButton.js +1 -1
- package/src/sap/m/SplitContainer.js +1 -1
- package/src/sap/m/StandardListItem.js +1 -1
- package/src/sap/m/StandardTile.js +1 -1
- package/src/sap/m/StandardTreeItem.js +1 -1
- package/src/sap/m/StepInput.js +1 -1
- package/src/sap/m/SuggestionItem.js +1 -1
- package/src/sap/m/SuggestionsPopover.js +3 -2
- package/src/sap/m/Switch.js +1 -1
- package/src/sap/m/TabContainer.js +1 -1
- package/src/sap/m/TabContainerItem.js +1 -1
- package/src/sap/m/TabStrip.js +1 -1
- package/src/sap/m/TabStripItem.js +1 -1
- package/src/sap/m/Table.js +1 -1
- package/src/sap/m/TablePersoController.js +1 -1
- package/src/sap/m/TablePersoDialog.js +1 -1
- package/src/sap/m/TablePersoProvider.js +1 -1
- package/src/sap/m/TableSelectDialog.js +1 -1
- package/src/sap/m/Text.js +1 -1
- package/src/sap/m/TextArea.js +1 -1
- package/src/sap/m/Tile.js +1 -1
- package/src/sap/m/TileContainer.js +1 -1
- package/src/sap/m/TileContent.js +1 -1
- package/src/sap/m/TimePicker.js +6 -2
- package/src/sap/m/TimePickerSlider.js +1 -1
- package/src/sap/m/TimePickerSliders.js +1 -1
- package/src/sap/m/Title.js +1 -1
- package/src/sap/m/TitlePropagationSupport.js +1 -1
- package/src/sap/m/ToggleButton.js +1 -1
- package/src/sap/m/Token.js +1 -1
- package/src/sap/m/Tokenizer.js +1 -1
- package/src/sap/m/Toolbar.js +1 -1
- package/src/sap/m/ToolbarLayoutData.js +1 -1
- package/src/sap/m/ToolbarSeparator.js +1 -1
- package/src/sap/m/ToolbarSpacer.js +1 -1
- package/src/sap/m/Tree.js +1 -1
- package/src/sap/m/TreeItemBase.js +1 -1
- package/src/sap/m/UploadCollection.js +2 -2
- package/src/sap/m/UploadCollectionItem.js +1 -1
- package/src/sap/m/UploadCollectionParameter.js +1 -1
- package/src/sap/m/UploadCollectionToolbarPlaceholder.js +1 -1
- package/src/sap/m/VBox.js +1 -1
- package/src/sap/m/ViewSettingsCustomItem.js +1 -1
- package/src/sap/m/ViewSettingsCustomTab.js +1 -1
- package/src/sap/m/ViewSettingsDialog.js +1 -1
- package/src/sap/m/ViewSettingsFilterItem.js +1 -1
- package/src/sap/m/ViewSettingsItem.js +1 -1
- package/src/sap/m/VisibleItem.js +1 -1
- package/src/sap/m/Wizard.js +1 -1
- package/src/sap/m/WizardProgressNavigator.js +1 -1
- package/src/sap/m/WizardStep.js +1 -1
- package/src/sap/m/changeHandler/AddTableColumn.js +1 -1
- package/src/sap/m/changeHandler/ChangeLinkTarget.js +1 -1
- package/src/sap/m/changeHandler/CombineButtons.js +1 -1
- package/src/sap/m/changeHandler/MoveTableColumns.js +1 -1
- package/src/sap/m/changeHandler/SplitMenuButton.js +1 -1
- package/src/sap/m/delegate/ValueStateMessage.js +2 -0
- package/src/sap/m/designtime/messagebundle_de.properties +2 -2
- package/src/sap/m/library.js +2 -2
- package/src/sap/m/messagebundle_cs.properties +2 -2
- package/src/sap/m/messagebundle_fr.properties +3 -3
- package/src/sap/m/messagebundle_hr.properties +2 -2
- package/src/sap/m/messagebundle_it.properties +2 -2
- package/src/sap/m/messagebundle_iw.properties +1 -1
- package/src/sap/m/messagebundle_ko.properties +8 -8
- package/src/sap/m/messagebundle_nl.properties +4 -4
- package/src/sap/m/messagebundle_sh.properties +1 -1
- package/src/sap/m/messagebundle_th.properties +1 -1
- package/src/sap/m/semantic/AddAction.js +1 -1
- package/src/sap/m/semantic/CancelAction.js +1 -1
- package/src/sap/m/semantic/DeleteAction.js +1 -1
- package/src/sap/m/semantic/DetailPage.js +1 -1
- package/src/sap/m/semantic/DiscussInJamAction.js +1 -1
- package/src/sap/m/semantic/EditAction.js +1 -1
- package/src/sap/m/semantic/FavoriteAction.js +1 -1
- package/src/sap/m/semantic/FilterAction.js +1 -1
- package/src/sap/m/semantic/FilterSelect.js +1 -1
- package/src/sap/m/semantic/FlagAction.js +1 -1
- package/src/sap/m/semantic/ForwardAction.js +1 -1
- package/src/sap/m/semantic/FullscreenPage.js +1 -1
- package/src/sap/m/semantic/GroupAction.js +1 -1
- package/src/sap/m/semantic/GroupSelect.js +1 -1
- package/src/sap/m/semantic/MainAction.js +1 -1
- package/src/sap/m/semantic/MasterPage.js +1 -1
- package/src/sap/m/semantic/MessagesIndicator.js +1 -1
- package/src/sap/m/semantic/MultiSelectAction.js +1 -1
- package/src/sap/m/semantic/NegativeAction.js +1 -1
- package/src/sap/m/semantic/OpenInAction.js +1 -1
- package/src/sap/m/semantic/PositiveAction.js +1 -1
- package/src/sap/m/semantic/PrintAction.js +1 -1
- package/src/sap/m/semantic/SaveAction.js +1 -1
- package/src/sap/m/semantic/Segment.js +1 -1
- package/src/sap/m/semantic/SegmentedContainer.js +1 -1
- package/src/sap/m/semantic/SemanticButton.js +1 -1
- package/src/sap/m/semantic/SemanticConfiguration.js +1 -1
- package/src/sap/m/semantic/SemanticControl.js +1 -1
- package/src/sap/m/semantic/SemanticOverflowToolbarButton.js +1 -1
- package/src/sap/m/semantic/SemanticPage.js +1 -1
- package/src/sap/m/semantic/SemanticSelect.js +1 -1
- package/src/sap/m/semantic/SemanticToggleButton.js +1 -1
- package/src/sap/m/semantic/SendEmailAction.js +1 -1
- package/src/sap/m/semantic/SendMessageAction.js +1 -1
- package/src/sap/m/semantic/ShareInJamAction.js +1 -1
- package/src/sap/m/semantic/ShareMenu.js +1 -1
- package/src/sap/m/semantic/ShareMenuPage.js +1 -1
- package/src/sap/m/semantic/SortAction.js +1 -1
- package/src/sap/m/semantic/SortSelect.js +1 -1
- package/src/sap/m/themes/base/Dialog.less +4 -66
- package/src/sap/m/themes/base/Popover.less +0 -1
- package/src/sap/m/themes/base/RadioButton.less +2 -2
- package/src/sap/m/upload/UploadSet.js +1 -1
- package/src/sap/m/upload/UploadSetItem.js +1 -1
|
@@ -17,7 +17,7 @@ sap.ui.define([
|
|
|
17
17
|
* @param {object} [mSettings] initial settings for the new control
|
|
18
18
|
* @class Type for <code>selectionItems</code> aggregation in <code>P13nSelectionPanel</code> control.
|
|
19
19
|
* @extends sap.ui.core.Item
|
|
20
|
-
* @version 1.71.
|
|
20
|
+
* @version 1.71.47
|
|
21
21
|
* @constructor
|
|
22
22
|
* @author SAP SE
|
|
23
23
|
* @private
|
|
@@ -30,7 +30,7 @@ sap.ui.define([
|
|
|
30
30
|
* @class The P13nSelectionPanel control is used to define selection settings like the visibility or the order of items.
|
|
31
31
|
* @extends sap.m.P13nPanel
|
|
32
32
|
* @author SAP SE
|
|
33
|
-
* @version 1.71.
|
|
33
|
+
* @version 1.71.47
|
|
34
34
|
* @constructor
|
|
35
35
|
* @private
|
|
36
36
|
* @since 1.46.0
|
|
@@ -17,7 +17,7 @@ sap.ui.define([
|
|
|
17
17
|
* @param {object} [mSettings] initial settings for the new control
|
|
18
18
|
* @class Type for <code>sortItems</code> aggregation in P13nSortPanel control.
|
|
19
19
|
* @extends sap.ui.core.Item
|
|
20
|
-
* @version 1.71.
|
|
20
|
+
* @version 1.71.47
|
|
21
21
|
* @constructor
|
|
22
22
|
* @public
|
|
23
23
|
* @since 1.26.0
|
|
@@ -26,7 +26,7 @@ sap.ui.define([
|
|
|
26
26
|
* @param {object} [mSettings] initial settings for the new control
|
|
27
27
|
* @class The P13nSortPanel control is used to define settings for sorting in table personalization.
|
|
28
28
|
* @extends sap.m.P13nPanel
|
|
29
|
-
* @version 1.71.
|
|
29
|
+
* @version 1.71.47
|
|
30
30
|
* @constructor
|
|
31
31
|
* @public
|
|
32
32
|
* @since 1.26.0
|
package/src/sap/m/PDFViewer.js
CHANGED
package/src/sap/m/Page.js
CHANGED
package/src/sap/m/Panel.js
CHANGED
|
@@ -23,7 +23,7 @@ sap.ui.define(['sap/ui/core/Element', 'sap/m/CustomListItem'], function (Element
|
|
|
23
23
|
* The <code>sap.m.PlanningCalendarRow</code> allows you to modify appointments at row level.
|
|
24
24
|
*
|
|
25
25
|
* @extends sap.ui.core.Element
|
|
26
|
-
* @version 1.71.
|
|
26
|
+
* @version 1.71.47
|
|
27
27
|
*
|
|
28
28
|
* @constructor
|
|
29
29
|
* @public
|
|
@@ -27,7 +27,7 @@ sap.ui.define(['sap/ui/core/Element', './library', 'sap/ui/unified/library'],
|
|
|
27
27
|
* The <code>PlanningCalendarView</code> defines the type of the intervals (hours, days, months)
|
|
28
28
|
* and how many intervals are displayed.
|
|
29
29
|
* @extends sap.ui.core.Element
|
|
30
|
-
* @version 1.71.
|
|
30
|
+
* @version 1.71.47
|
|
31
31
|
*
|
|
32
32
|
* @constructor
|
|
33
33
|
* @public
|
package/src/sap/m/Popover.js
CHANGED
|
@@ -111,7 +111,7 @@ sap.ui.define([
|
|
|
111
111
|
* @extends sap.ui.core.Control
|
|
112
112
|
* @implements sap.ui.core.PopupInterface
|
|
113
113
|
* @author SAP SE
|
|
114
|
-
* @version 1.71.
|
|
114
|
+
* @version 1.71.47
|
|
115
115
|
*
|
|
116
116
|
* @public
|
|
117
117
|
* @alias sap.m.Popover
|
|
@@ -394,7 +394,6 @@ sap.ui.define([
|
|
|
394
394
|
height: 32
|
|
395
395
|
};
|
|
396
396
|
|
|
397
|
-
this._$window = jQuery(window);
|
|
398
397
|
this._initialWindowDimensions = {};
|
|
399
398
|
|
|
400
399
|
this.oPopup = new Popup();
|
|
@@ -512,10 +511,11 @@ sap.ui.define([
|
|
|
512
511
|
}
|
|
513
512
|
|
|
514
513
|
var oRect = jQuery(oPosition.of).rect();
|
|
514
|
+
var $popoverWithinArea = jQuery(that.getWithinAreaDomRef());
|
|
515
515
|
// if openBy Dom element is complete out of viewport after resize event, close the popover. But close it only if virtualkeyboard is not opened.
|
|
516
516
|
if (bFromResize
|
|
517
|
-
&&
|
|
518
|
-
&& (oRect.top + oRect.height <= 0 || oRect.top >=
|
|
517
|
+
&& $popoverWithinArea.height() == that._initialWindowDimensions.height
|
|
518
|
+
&& (oRect.top + oRect.height <= 0 || oRect.top >= $popoverWithinArea.height() || oRect.left + oRect.width <= 0 || oRect.left >= $popoverWithinArea.width())) {
|
|
519
519
|
that.close();
|
|
520
520
|
return;
|
|
521
521
|
}
|
|
@@ -566,18 +566,33 @@ sap.ui.define([
|
|
|
566
566
|
};
|
|
567
567
|
};
|
|
568
568
|
|
|
569
|
+
/**
|
|
570
|
+
* Gets the area to which the Popover is restricted.
|
|
571
|
+
*
|
|
572
|
+
* @returns {HTMLElement|Window}
|
|
573
|
+
* @private
|
|
574
|
+
*/
|
|
575
|
+
Popover.prototype.getWithinAreaDomRef = function () {
|
|
576
|
+
return Popup.getWithinAreaDomRef();
|
|
577
|
+
};
|
|
578
|
+
|
|
569
579
|
/**
|
|
570
580
|
* Required adaptations before rendering of the Popover.
|
|
571
581
|
*
|
|
572
582
|
* @private
|
|
573
583
|
*/
|
|
574
584
|
Popover.prototype.onBeforeRendering = function () {
|
|
575
|
-
var oNavContent, oPageContent;
|
|
585
|
+
var oNavContent, oPageContent, $popoverWithinArea;
|
|
586
|
+
|
|
587
|
+
if (this.hasStyleClass("sapUiPopupWithPadding")) {
|
|
588
|
+
Log.warning("Usage of CSS class 'sapUiPopupWithPadding' is deprecated. Use 'sapUiContentPadding' instead", null, "sap.m.Popover");
|
|
589
|
+
}
|
|
576
590
|
|
|
577
591
|
if (!this._initialWindowDimensions.width || !this._initialWindowDimensions.height) {
|
|
592
|
+
$popoverWithinArea = jQuery(this.getWithinAreaDomRef());
|
|
578
593
|
this._initialWindowDimensions = {
|
|
579
|
-
width:
|
|
580
|
-
height:
|
|
594
|
+
width: $popoverWithinArea.width(),
|
|
595
|
+
height: $popoverWithinArea.height()
|
|
581
596
|
};
|
|
582
597
|
}
|
|
583
598
|
|
|
@@ -930,15 +945,16 @@ sap.ui.define([
|
|
|
930
945
|
sContentHeight = this.getContentHeight(),
|
|
931
946
|
$arrow = this.$("arrow"),
|
|
932
947
|
iWindowWidth,
|
|
933
|
-
iWindowHeight
|
|
948
|
+
iWindowHeight,
|
|
949
|
+
$popoverWithinArea = jQuery(this.getWithinAreaDomRef());
|
|
934
950
|
|
|
935
951
|
if (sContentWidth.indexOf("%") > 0) {
|
|
936
|
-
iWindowWidth =
|
|
952
|
+
iWindowWidth = $popoverWithinArea.width();
|
|
937
953
|
sContentWidth = PopupHelper.calcPercentageSize(sContentWidth, iWindowWidth);
|
|
938
954
|
}
|
|
939
955
|
|
|
940
956
|
if (sContentHeight.indexOf("%") > 0) {
|
|
941
|
-
iWindowHeight =
|
|
957
|
+
iWindowHeight = $popoverWithinArea.height();
|
|
942
958
|
sContentHeight = PopupHelper.calcPercentageSize(sContentHeight, iWindowHeight);
|
|
943
959
|
}
|
|
944
960
|
|
|
@@ -1326,9 +1342,10 @@ sap.ui.define([
|
|
|
1326
1342
|
|
|
1327
1343
|
Popover.prototype._getDocHeight = function () {
|
|
1328
1344
|
var body = document.body,
|
|
1329
|
-
html = document.documentElement
|
|
1345
|
+
html = document.documentElement,
|
|
1346
|
+
oOffset = jQuery(this.getWithinAreaDomRef()).offset() || {top: 0};
|
|
1330
1347
|
|
|
1331
|
-
return Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.offsetHeight);
|
|
1348
|
+
return oOffset.top + Math.max(body.scrollHeight, body.offsetHeight, html.clientHeight, html.offsetHeight);
|
|
1332
1349
|
};
|
|
1333
1350
|
|
|
1334
1351
|
Popover.prototype._calcVertical = function () {
|
|
@@ -1384,7 +1401,8 @@ sap.ui.define([
|
|
|
1384
1401
|
var iOffsetX = this._getOffsetX();
|
|
1385
1402
|
var iLeftSpace = iParentLeft - this._marginLeft + iOffsetX;
|
|
1386
1403
|
var iParentRight = iParentLeft + iParentWidth;
|
|
1387
|
-
var
|
|
1404
|
+
var $popoverWithinArea = jQuery(this.getWithinAreaDomRef());
|
|
1405
|
+
var iRightSpace = $popoverWithinArea.width() - iParentRight - this._marginRight - iOffsetX;
|
|
1388
1406
|
var iPopoverWidth = this.$().outerWidth();
|
|
1389
1407
|
var bPreferredLeftOrFlip = this.getPlacement() === PlacementType.PreferredLeftOrFlip;
|
|
1390
1408
|
var bPreferredRightOrFlip = this.getPlacement() === PlacementType.PreferredRightOrFlip;
|
|
@@ -1420,8 +1438,9 @@ sap.ui.define([
|
|
|
1420
1438
|
};
|
|
1421
1439
|
|
|
1422
1440
|
Popover.prototype._calcAuto = function () {
|
|
1441
|
+
var $popoverWithinArea = jQuery(this.getWithinAreaDomRef());
|
|
1423
1442
|
//calculate which position is the best
|
|
1424
|
-
if (
|
|
1443
|
+
if ($popoverWithinArea.width() > $popoverWithinArea.height()) {
|
|
1425
1444
|
//in "landscape" mode horizontal is preferred, therefore it is checked first
|
|
1426
1445
|
if (this._checkHorizontal()) {
|
|
1427
1446
|
this._calcHorizontal();
|
|
@@ -1451,7 +1470,8 @@ sap.ui.define([
|
|
|
1451
1470
|
var iOffsetX = this._getOffsetX();
|
|
1452
1471
|
var iLeftSpace = iParentLeft - this._marginLeft + iOffsetX;
|
|
1453
1472
|
var iParentRight = iParentLeft + iParentWidth;
|
|
1454
|
-
var
|
|
1473
|
+
var $popoverWithinArea = jQuery(this.getWithinAreaDomRef());
|
|
1474
|
+
var iRightSpace = $popoverWithinArea.width() - iParentRight - this._marginRight - iOffsetX;
|
|
1455
1475
|
|
|
1456
1476
|
var $this = this.$();
|
|
1457
1477
|
var iWidth = $this.outerWidth() + this._arrowOffset;
|
|
@@ -1498,23 +1518,24 @@ sap.ui.define([
|
|
|
1498
1518
|
var iBottomSpace = this._getDocHeight() - $parent.offset().top - iParentHeight - this._marginBottom - iOffsetY;
|
|
1499
1519
|
var iLeftSpace = iParentLeft - this._marginLeft + iOffsetX;
|
|
1500
1520
|
var iParentRight = iParentLeft + iParentWidth;
|
|
1501
|
-
var
|
|
1521
|
+
var $popoverWithinArea = jQuery(this.getWithinAreaDomRef());
|
|
1522
|
+
var iRightSpace = $popoverWithinArea.width() - iParentRight - this._marginRight - iOffsetX;
|
|
1502
1523
|
|
|
1503
1524
|
//calculation for every possible position how many percent of the popover can be covered
|
|
1504
1525
|
var fPopoverSize = iHeight * iWidth;
|
|
1505
1526
|
var fAvailableHeight;
|
|
1506
1527
|
var fAvaliableWidth;
|
|
1507
1528
|
|
|
1508
|
-
if ((
|
|
1529
|
+
if (($popoverWithinArea.height() - this._marginTop - this._marginBottom) >= iHeight) {
|
|
1509
1530
|
fAvailableHeight = iHeight;
|
|
1510
1531
|
} else {
|
|
1511
|
-
fAvailableHeight =
|
|
1532
|
+
fAvailableHeight = $popoverWithinArea.height() - this._marginTop - this._marginBottom;
|
|
1512
1533
|
}
|
|
1513
1534
|
|
|
1514
|
-
if ((
|
|
1535
|
+
if (($popoverWithinArea.width() - this._marginLeft - this._marginRight) >= iWidth) {
|
|
1515
1536
|
fAvaliableWidth = iWidth;
|
|
1516
1537
|
} else {
|
|
1517
|
-
fAvaliableWidth =
|
|
1538
|
+
fAvaliableWidth = $popoverWithinArea.width() - this._marginLeft - this._marginRight;
|
|
1518
1539
|
}
|
|
1519
1540
|
|
|
1520
1541
|
var fLeftCoverage = (fAvailableHeight * (iLeftSpace)) / fPopoverSize;
|
|
@@ -1539,7 +1560,7 @@ sap.ui.define([
|
|
|
1539
1560
|
this._oCalcedPos = PlacementType.Bottom;
|
|
1540
1561
|
}
|
|
1541
1562
|
} else if (fMaxCoverageVertical === fMaxCoverageHorizontal) {
|
|
1542
|
-
if (
|
|
1563
|
+
if ($popoverWithinArea.height() > $popoverWithinArea.width()) {
|
|
1543
1564
|
// in portrait vertical is preferred
|
|
1544
1565
|
if (fMaxCoverageVertical === fTopCoverage) {
|
|
1545
1566
|
this._oCalcedPos = PlacementType.Top;
|
|
@@ -1589,7 +1610,10 @@ sap.ui.define([
|
|
|
1589
1610
|
Popover.prototype._getPositionParams = function ($popover, $arrow, $content, $scrollArea) {
|
|
1590
1611
|
var oComputedStyle = window.getComputedStyle($popover[0]),
|
|
1591
1612
|
oContentComputedStyle = window.getComputedStyle($content[0]),
|
|
1592
|
-
|
|
1613
|
+
$window = jQuery(window),
|
|
1614
|
+
fScrollWidth = this.getDomRef().clientHeight !== this.getDomRef().scrollHeight ? getScrollbarSize().width : 0,
|
|
1615
|
+
$popoverWithinArea = jQuery(this.getWithinAreaDomRef()),
|
|
1616
|
+
oWithinOffset = $popoverWithinArea.offset() || {top: 0, left: 0},
|
|
1593
1617
|
oPosParams = {};
|
|
1594
1618
|
|
|
1595
1619
|
oPosParams._$popover = $popover;
|
|
@@ -1603,30 +1627,36 @@ sap.ui.define([
|
|
|
1603
1627
|
|
|
1604
1628
|
oPosParams._$footer = $popover.children(".sapMPopoverFooter");
|
|
1605
1629
|
|
|
1606
|
-
|
|
1607
|
-
oPosParams.
|
|
1608
|
-
oPosParams.
|
|
1609
|
-
oPosParams.
|
|
1630
|
+
// Window dimensions
|
|
1631
|
+
oPosParams._fWindowTop = $window.scrollTop();
|
|
1632
|
+
oPosParams._fWindowRight = $window.width();
|
|
1633
|
+
oPosParams._fWindowBottom = (Popover._bIOS7 && Device.orientation.landscape && window.innerHeight) ? window.innerHeight : $window.height();
|
|
1634
|
+
oPosParams._fWindowLeft = $window.scrollLeft();
|
|
1635
|
+
oPosParams._fWindowWidth = window.innerWidth;
|
|
1636
|
+
oPosParams._fWindowHeight = window.innerHeight;
|
|
1637
|
+
|
|
1638
|
+
oPosParams._fWithinAreaWidth = Math.min($popoverWithinArea.outerWidth(), oPosParams._fWindowWidth);
|
|
1639
|
+
oPosParams._fWithinAreaHeight = Math.min($popoverWithinArea.outerHeight(), oPosParams._fWindowHeight);
|
|
1610
1640
|
|
|
1611
1641
|
oPosParams._fDocumentWidth = oPosParams._fWindowLeft + oPosParams._fWindowRight;
|
|
1612
1642
|
oPosParams._fDocumentHeight = oPosParams._fWindowTop + oPosParams._fWindowBottom;
|
|
1613
1643
|
|
|
1614
1644
|
oPosParams._fArrowHeight = $arrow.outerHeight(true);
|
|
1615
|
-
oPosParams.
|
|
1616
|
-
oPosParams.
|
|
1617
|
-
oPosParams.
|
|
1645
|
+
oPosParams._fPopoverWidth = Popover.outerWidth($popover[0]);
|
|
1646
|
+
oPosParams._fPopoverInnerWidth = oPosParams._$scrollArea ? (oPosParams._$scrollArea.width() + fScrollWidth) : 0;
|
|
1647
|
+
oPosParams._fPopoverHeight = Popover.outerHeight($popover[0]);
|
|
1618
1648
|
oPosParams._fHeaderHeight = oPosParams._$header.length > 0 ? oPosParams._$header.outerHeight(true) : 0;
|
|
1619
1649
|
oPosParams._fSubHeaderHeight = oPosParams._$subHeader.length > 0 ? oPosParams._$subHeader.outerHeight(true) : 0;
|
|
1620
1650
|
oPosParams._fFooterHeight = oPosParams._$footer.length > 0 ? oPosParams._$footer.outerHeight(true) : 0;
|
|
1621
1651
|
|
|
1622
|
-
oPosParams.
|
|
1623
|
-
oPosParams.
|
|
1624
|
-
oPosParams.
|
|
1652
|
+
oPosParams._fPopoverOffset = $popover.offset();
|
|
1653
|
+
oPosParams._fPopoverOffsetX = this._getOffsetX();
|
|
1654
|
+
oPosParams._fPopoverOffsetY = this._getOffsetY();
|
|
1625
1655
|
|
|
1626
|
-
oPosParams.
|
|
1627
|
-
oPosParams.
|
|
1628
|
-
oPosParams.
|
|
1629
|
-
oPosParams.
|
|
1656
|
+
oPosParams._fPopoverMarginTop = oPosParams._fWindowTop + this._marginTop + oWithinOffset.top;
|
|
1657
|
+
oPosParams._fPopoverMarginLeft = oPosParams._fWindowLeft + this._marginLeft + oWithinOffset.left;
|
|
1658
|
+
oPosParams._fPopoverMarginRight = oPosParams._fWindowWidth - oWithinOffset.left - oPosParams._fWithinAreaWidth + this._marginRight;
|
|
1659
|
+
oPosParams._fPopoverMarginBottom = oPosParams._fWindowHeight - oWithinOffset.top - oPosParams._fWithinAreaHeight + this._marginBottom;
|
|
1630
1660
|
|
|
1631
1661
|
oPosParams._fPopoverBorderTop = parseFloat(oComputedStyle.borderTopWidth);
|
|
1632
1662
|
oPosParams._fPopoverBorderRight = parseFloat(oComputedStyle.borderRightWidth);
|
|
@@ -1647,31 +1677,35 @@ sap.ui.define([
|
|
|
1647
1677
|
* @private
|
|
1648
1678
|
*/
|
|
1649
1679
|
Popover.prototype._recalculateMargins = function (sCalculatedPlacement, oPosParams) {
|
|
1680
|
+
var fNewCalc;
|
|
1650
1681
|
var bRtl = sap.ui.getCore().getConfiguration().getRTL();
|
|
1651
1682
|
|
|
1652
1683
|
//make the popover never cover the control or dom node that opens the popover
|
|
1653
1684
|
switch (sCalculatedPlacement) {
|
|
1654
1685
|
case PlacementType.Left:
|
|
1655
1686
|
if (bRtl) {
|
|
1656
|
-
oPosParams.
|
|
1687
|
+
oPosParams._fPopoverMarginLeft = oPosParams._$parent.offset().left + Popover.outerWidth(oPosParams._$parent[0], false) + this._arrowOffset - oPosParams._fPopoverOffsetX;
|
|
1657
1688
|
} else {
|
|
1658
|
-
oPosParams.
|
|
1689
|
+
oPosParams._fPopoverMarginRight = oPosParams._fWindowWidth - oPosParams._$parent.offset().left + this._arrowOffset - oPosParams._fPopoverOffsetX;
|
|
1659
1690
|
}
|
|
1660
1691
|
break;
|
|
1661
1692
|
case PlacementType.Right:
|
|
1662
1693
|
if (bRtl) {
|
|
1663
|
-
oPosParams.
|
|
1694
|
+
oPosParams._fPopoverMarginRight = oPosParams._fWindowWidth - Popover.outerWidth(oPosParams._$parent[0], false) - oPosParams._$parent.offset().left + this._arrowOffset;
|
|
1664
1695
|
} else {
|
|
1665
|
-
oPosParams.
|
|
1696
|
+
oPosParams._fPopoverMarginLeft = oPosParams._$parent.offset().left + Popover.outerWidth(oPosParams._$parent[0], false) + this._arrowOffset + oPosParams._fPopoverOffsetX;
|
|
1666
1697
|
}
|
|
1667
1698
|
break;
|
|
1668
1699
|
case PlacementType.Top:
|
|
1669
|
-
|
|
1700
|
+
fNewCalc = oPosParams._fWindowHeight - oPosParams._$parent.offset().top + this._arrowOffset - oPosParams._fPopoverOffsetY;
|
|
1701
|
+
oPosParams._fPopoverMarginBottom = fNewCalc > oPosParams._fPopoverMarginBottom ? fNewCalc : oPosParams._fPopoverMarginBottom;
|
|
1670
1702
|
break;
|
|
1671
1703
|
case PlacementType.Bottom:
|
|
1672
|
-
oPosParams.
|
|
1704
|
+
oPosParams._fPopoverMarginTop = oPosParams._$parent.offset().top + Popover.outerHeight(oPosParams._$parent[0], false) + this._arrowOffset + oPosParams._fPopoverOffsetY;
|
|
1673
1705
|
break;
|
|
1674
1706
|
}
|
|
1707
|
+
|
|
1708
|
+
return oPosParams;
|
|
1675
1709
|
};
|
|
1676
1710
|
|
|
1677
1711
|
/**
|
|
@@ -1686,25 +1720,25 @@ sap.ui.define([
|
|
|
1686
1720
|
iRight,
|
|
1687
1721
|
iTop,
|
|
1688
1722
|
iBottom,
|
|
1689
|
-
iPosToRightBorder = oPosParams._fDocumentWidth - oPosParams.
|
|
1690
|
-
iPosToBottomBorder = oPosParams._fDocumentHeight - oPosParams.
|
|
1691
|
-
bExceedHorizontal = (oPosParams._fDocumentWidth - oPosParams.
|
|
1692
|
-
bExceedVertical = (oPosParams._fDocumentHeight - oPosParams.
|
|
1693
|
-
bOverLeft = oPosParams.
|
|
1723
|
+
iPosToRightBorder = oPosParams._fDocumentWidth - oPosParams._fPopoverOffset.left - oPosParams._fPopoverWidth,
|
|
1724
|
+
iPosToBottomBorder = oPosParams._fDocumentHeight - oPosParams._fPopoverOffset.top - oPosParams._fPopoverHeight,
|
|
1725
|
+
bExceedHorizontal = (oPosParams._fDocumentWidth - oPosParams._fPopoverMarginRight - oPosParams._fPopoverMarginLeft) < oPosParams._fPopoverWidth,
|
|
1726
|
+
bExceedVertical = (oPosParams._fDocumentHeight - oPosParams._fPopoverMarginTop - oPosParams._fPopoverMarginBottom) < oPosParams._fPopoverHeight,
|
|
1727
|
+
bOverLeft = oPosParams._fPopoverOffset.left < oPosParams._fPopoverMarginLeft,
|
|
1694
1728
|
//Include Scrollbar's width in these calculations
|
|
1695
|
-
fScrollbarSize = this.getVerticalScrolling() && (oPosParams.
|
|
1729
|
+
fScrollbarSize = this.getVerticalScrolling() && (oPosParams._fPopoverWidth !== oPosParams._fPopoverInnerWidth) ?
|
|
1696
1730
|
getScrollbarSize().width : 0,
|
|
1697
|
-
bOverRight = iPosToRightBorder < (oPosParams.
|
|
1698
|
-
bOverTop = oPosParams.
|
|
1699
|
-
bOverBottom = iPosToBottomBorder < oPosParams.
|
|
1731
|
+
bOverRight = iPosToRightBorder < (oPosParams._fPopoverMarginRight + fScrollbarSize),
|
|
1732
|
+
bOverTop = oPosParams._fPopoverOffset.top < oPosParams._fPopoverMarginTop,
|
|
1733
|
+
bOverBottom = iPosToBottomBorder < oPosParams._fPopoverMarginBottom,
|
|
1700
1734
|
bRtl = sap.ui.getCore().getConfiguration().getRTL();
|
|
1701
1735
|
|
|
1702
1736
|
if (bExceedHorizontal) {
|
|
1703
|
-
iLeft = oPosParams.
|
|
1704
|
-
iRight = oPosParams.
|
|
1737
|
+
iLeft = oPosParams._fPopoverMarginLeft;
|
|
1738
|
+
iRight = oPosParams._fPopoverMarginRight;
|
|
1705
1739
|
} else {
|
|
1706
1740
|
if (bOverLeft) {
|
|
1707
|
-
iLeft = oPosParams.
|
|
1741
|
+
iLeft = oPosParams._fPopoverMarginLeft;
|
|
1708
1742
|
if (bRtl) {
|
|
1709
1743
|
// when only one side of the popover goes beyond the defined border make sure that
|
|
1710
1744
|
// only one from the iLeft and iRight is set because Popover has a fixed size and
|
|
@@ -1712,7 +1746,7 @@ sap.ui.define([
|
|
|
1712
1746
|
iRight = "";
|
|
1713
1747
|
}
|
|
1714
1748
|
} else if (bOverRight) {
|
|
1715
|
-
iRight = oPosParams.
|
|
1749
|
+
iRight = oPosParams._fPopoverMarginRight;
|
|
1716
1750
|
// when only one side of the popover goes beyond the defined border make sure that
|
|
1717
1751
|
// only one from the iLeft and iRight is set because Popover has a fixed size and
|
|
1718
1752
|
// can't react to content size change when both are set
|
|
@@ -1721,13 +1755,13 @@ sap.ui.define([
|
|
|
1721
1755
|
}
|
|
1722
1756
|
|
|
1723
1757
|
if (bExceedVertical) {
|
|
1724
|
-
iTop = oPosParams.
|
|
1725
|
-
iBottom = oPosParams.
|
|
1758
|
+
iTop = oPosParams._fPopoverMarginTop;
|
|
1759
|
+
iBottom = oPosParams._fPopoverMarginBottom;
|
|
1726
1760
|
} else {
|
|
1727
1761
|
if (bOverTop) {
|
|
1728
|
-
iTop = oPosParams.
|
|
1762
|
+
iTop = oPosParams._fPopoverMarginTop;
|
|
1729
1763
|
} else if (bOverBottom) {
|
|
1730
|
-
iBottom = oPosParams.
|
|
1764
|
+
iBottom = oPosParams._fPopoverMarginBottom;
|
|
1731
1765
|
// when only one side of the popover goes beyond the defined border make sure that
|
|
1732
1766
|
// only one from the iLeft and iRight is set because Popover has a fixed size and
|
|
1733
1767
|
// can't react to content size change when both are set
|
|
@@ -1783,7 +1817,10 @@ sap.ui.define([
|
|
|
1783
1817
|
* @private
|
|
1784
1818
|
*/
|
|
1785
1819
|
Popover.prototype._getMaxContentWidth = function (oPosParams) {
|
|
1786
|
-
|
|
1820
|
+
var fPopoverInnerElementsSpacing = oPosParams._fPopoverBorderLeft + oPosParams._fPopoverBorderRight;
|
|
1821
|
+
|
|
1822
|
+
return oPosParams._fDocumentWidth - oPosParams._fPopoverMarginLeft -
|
|
1823
|
+
oPosParams._fPopoverMarginRight - fPopoverInnerElementsSpacing;
|
|
1787
1824
|
};
|
|
1788
1825
|
|
|
1789
1826
|
/**
|
|
@@ -1794,7 +1831,12 @@ sap.ui.define([
|
|
|
1794
1831
|
* @private
|
|
1795
1832
|
*/
|
|
1796
1833
|
Popover.prototype._getMaxContentHeight = function (oPosParams) {
|
|
1797
|
-
|
|
1834
|
+
var fPopoverInnerElementsHeight = oPosParams._fHeaderHeight + oPosParams._fSubHeaderHeight +
|
|
1835
|
+
oPosParams._fFooterHeight + oPosParams._fContentMarginTop + oPosParams._fContentMarginBottom +
|
|
1836
|
+
oPosParams._fPopoverBorderTop + oPosParams._fPopoverBorderBottom;
|
|
1837
|
+
|
|
1838
|
+
return oPosParams._fDocumentHeight - oPosParams._fPopoverMarginTop -
|
|
1839
|
+
oPosParams._fPopoverMarginBottom - fPopoverInnerElementsHeight;
|
|
1798
1840
|
};
|
|
1799
1841
|
|
|
1800
1842
|
/**
|
|
@@ -1825,25 +1867,25 @@ sap.ui.define([
|
|
|
1825
1867
|
bRtl = sap.ui.getCore().getConfiguration().getRTL();
|
|
1826
1868
|
|
|
1827
1869
|
// Recalculate Popover width and height because they can be changed after position adjustments
|
|
1828
|
-
oPosParams.
|
|
1829
|
-
oPosParams.
|
|
1870
|
+
oPosParams._fPopoverWidth = oPosParams._$popover.outerWidth();
|
|
1871
|
+
oPosParams._fPopoverHeight = oPosParams._$popover.outerHeight();
|
|
1830
1872
|
|
|
1831
1873
|
// Set arrow offset
|
|
1832
1874
|
if (sCalculatedPlacement === PlacementType.Left || sCalculatedPlacement === PlacementType.Right) {
|
|
1833
|
-
iPosArrow = oPosParams._$parent.offset().top - oPosParams._$popover.offset().top - oPosParams._fPopoverBorderTop + oPosParams.
|
|
1875
|
+
iPosArrow = oPosParams._$parent.offset().top - oPosParams._$popover.offset().top - oPosParams._fPopoverBorderTop + oPosParams._fPopoverOffsetY + 0.5 * (Popover.outerHeight(oPosParams._$parent[0], false) - oPosParams._$arrow.outerHeight(false));
|
|
1834
1876
|
iPosArrow = Math.max(iPosArrow, this._arrowOffsetThreshold);
|
|
1835
|
-
iPosArrow = Math.min(iPosArrow, oPosParams.
|
|
1877
|
+
iPosArrow = Math.min(iPosArrow, oPosParams._fPopoverHeight - this._arrowOffsetThreshold - oPosParams._$arrow.outerHeight());
|
|
1836
1878
|
return {"top": iPosArrow};
|
|
1837
1879
|
} else if (sCalculatedPlacement === PlacementType.Top || sCalculatedPlacement === PlacementType.Bottom) {
|
|
1838
1880
|
if (bRtl) {
|
|
1839
|
-
iPosArrow = oPosParams._$popover.offset().left + Popover.outerWidth(oPosParams._$popover[0], false) - (oPosParams._$parent.offset().left + Popover.outerWidth(oPosParams._$parent[0], false)) + oPosParams._fPopoverBorderRight + oPosParams.
|
|
1881
|
+
iPosArrow = oPosParams._$popover.offset().left + Popover.outerWidth(oPosParams._$popover[0], false) - (oPosParams._$parent.offset().left + Popover.outerWidth(oPosParams._$parent[0], false)) + oPosParams._fPopoverBorderRight + oPosParams._fPopoverOffsetX + 0.5 * (Popover.outerWidth(oPosParams._$parent[0], false) - oPosParams._$arrow.outerWidth(false));
|
|
1840
1882
|
iPosArrow = Math.max(iPosArrow, this._arrowOffsetThreshold);
|
|
1841
|
-
iPosArrow = Math.min(iPosArrow, oPosParams.
|
|
1883
|
+
iPosArrow = Math.min(iPosArrow, oPosParams._fPopoverWidth - this._arrowOffsetThreshold - oPosParams._$arrow.outerWidth(false));
|
|
1842
1884
|
return {"right": iPosArrow};
|
|
1843
1885
|
} else {
|
|
1844
|
-
iPosArrow = oPosParams._$parent.offset().left - oPosParams._$popover.offset().left - oPosParams._fPopoverBorderLeft + oPosParams.
|
|
1886
|
+
iPosArrow = oPosParams._$parent.offset().left - oPosParams._$popover.offset().left - oPosParams._fPopoverBorderLeft + oPosParams._fPopoverOffsetX + 0.5 * (Popover.outerWidth(oPosParams._$parent[0], false) - oPosParams._$arrow.outerWidth(false));
|
|
1845
1887
|
iPosArrow = Math.max(iPosArrow, this._arrowOffsetThreshold);
|
|
1846
|
-
iPosArrow = Math.min(iPosArrow, oPosParams.
|
|
1888
|
+
iPosArrow = Math.min(iPosArrow, oPosParams._fPopoverWidth - this._arrowOffsetThreshold - oPosParams._$arrow.outerWidth(false));
|
|
1847
1889
|
return {"left": iPosArrow};
|
|
1848
1890
|
}
|
|
1849
1891
|
}
|
|
@@ -1934,7 +1976,7 @@ sap.ui.define([
|
|
|
1934
1976
|
sCalculatedPlacement = this._getCalculatedPlacement(),
|
|
1935
1977
|
oPosParams = this._getPositionParams($popover, $arrow, $content, $scrollArea);
|
|
1936
1978
|
|
|
1937
|
-
this._recalculateMargins(sCalculatedPlacement, oPosParams);
|
|
1979
|
+
oPosParams = this._recalculateMargins(sCalculatedPlacement, oPosParams);
|
|
1938
1980
|
|
|
1939
1981
|
var oPopoverPosition = this._getPopoverPositionCss(oPosParams),
|
|
1940
1982
|
oContentSize = this._getContentDimensionsCss(oPosParams),
|
package/src/sap/m/QuickView.js
CHANGED