-
Notifications
You must be signed in to change notification settings - Fork 841
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New popover positioning service + updated EuiToolTip (#924)
* Initial popover service logic, mostly tested * tested and corrected the popup placement algorithm * Fix cross-axis positioning, update EuiToolTip to use new positioning service * tweaks for & after browser testing * jsdoc tweak/fix * changelog * Find best fit for popover content instead of forcing 100% fit * Dynamically positioned arrows * added comments to code * Reducing size of tooltip arrow * Group related variables in getPopoverScreenCoordinates into discrete steps: 1) Find original cross-axis position. 2) Apply shift to cross-axis position, if necessary. 3) Find primary axis position. * Fix positionSubstitues typo. * Split getPopoverScreenCoordinates into getCrossAxisPosition and getPrimaryAxisPosition helper functions. * Define iterationPositions first, and then traverse them. * Format comments and parameters to wrap. * Remove unnecessary minimumSpace parameter. * Update popover tests in response to PR feedback
- Loading branch information
1 parent
bfc240d
commit 4e8b1eb
Showing
10 changed files
with
1,002 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,4 +60,5 @@ export { | |
|
||
export { | ||
calculatePopoverPosition, | ||
findPopoverPosition, | ||
} from './popover'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export { calculatePopoverPosition } from './calculate_popover_position'; | ||
export { findPopoverPosition } from './popover_positioning'; |
Oops, something went wrong.