From 23761a13b4fa9f9b7ad993a92362218e27110bea Mon Sep 17 00:00:00 2001 From: LeonVay Date: Wed, 3 Jun 2020 19:05:46 +0300 Subject: [PATCH] feat(popover): Popover ux changes discussion --- packages/mosaic/popover/popover.component.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/mosaic/popover/popover.component.ts b/packages/mosaic/popover/popover.component.ts index 36c693cbe..53e87f312 100644 --- a/packages/mosaic/popover/popover.component.ts +++ b/packages/mosaic/popover/popover.component.ts @@ -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({