Skip to content

Commit

Permalink
feat(popover): Popover ux changes discussion
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonVay committed Jun 3, 2020
1 parent 3474109 commit 23761a1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/mosaic/popover/popover.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,16 @@ export function getMcPopoverInvalidPositionError(position: string) {
}

const VIEWPORT_MARGIN: number = 8;

/* Constant distance between popover container border
* corner according to popover placement and middle of arrow
* */
const POPOVER_ARROW_BORDER_DISTANCE: number = 20; // tslint:disable-line

/* Constant value for min height and width of anchor element used for popover.
* Set as POPOVER_ARROW_BORDER_DISTANCE multiplied by 2
* plus 2px border for both sides of element. Used in check of position management.
* */
const ANCHOR_MIN_HEIGHT_WIDTH: number = 44; // tslint:disable-line

@Directive({
Expand Down

0 comments on commit 23761a1

Please sign in to comment.