You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[AP-5625] Add optional popover and tooltip adjustment to viewport size (#751)
* add popover adjustment to viewport
* fix knip
* add functionality to tooltip
* add description to properties
* attach listener only when option enabled
* some refactoring
* pass props in navigation bar
Copy file name to clipboardExpand all lines: src/components/extendedPopover/Props.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,3 +4,4 @@
4
4
> -`position`: `start | end | center` {optional} relative shift of popover placement compared to parent element, defaults to `start`
5
5
> -`margin`: `{ top?: number, bottom?: number, left?: number, right?: number }` {optional} margin around popover, defaults to `5px` for all properties
6
6
> -`clickOutsideToClose`: `boolean` {optional} should popover be closed when clicked outside, defaults to `true`
7
+
> -`adjustPositionToViewportSize`: `boolean` {optional} should popover position be adjusted to viewport size if calculated position is outside of viewport dimensions, defaults to `false`
Copy file name to clipboardExpand all lines: src/components/extendedTooltip/Props.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,3 +6,4 @@
6
6
> -`showTimeout`: `number` {optional} delay time in miliseconds for opening of tooltip
7
7
> -`hideTimeout`: `number` {optional} delay time in miliseconds for closing of tooltip
8
8
> -`zIndex`: `number` {optional} z-index of the tooltip (default is whatever theme.zindex.sticky is set to)
9
+
> -`adjustPositionToViewportSize`: `boolean` {optional} should popover position be adjusted to viewport size if calculated position is outside of viewport dimensions, defaults to `false`
0 commit comments