11import { ChangeDetectionStrategy , Component , HostListener , Inject , Injector , TemplateRef , Type } from '@angular/core' ;
22import { IconType } from '@hypertrace/assets-library' ;
3- import { ExternalNavigationParams , GLOBAL_HEADER_HEIGHT , LayoutChangeService } from '@hypertrace/common' ;
3+ import { ExternalNavigationParams , LayoutChangeService } from '@hypertrace/common' ;
44import { ButtonStyle } from '../../button/button' ;
55import { IconSize } from '../../icon/icon-size' ;
6- import { PopoverFixedPositionLocation , POPOVER_DATA } from '../../popover/popover' ;
6+ import { POPOVER_DATA } from '../../popover/popover' ;
77import { PopoverRef } from '../../popover/popover-ref' ;
88import { SheetConstructionData } from '../overlay.service' ;
99import { SheetOverlayConfig , SheetSize } from './sheet' ;
@@ -72,7 +72,6 @@ export class SheetOverlayComponent {
7272 public constructor (
7373 private readonly popoverRef : PopoverRef ,
7474 @Inject ( POPOVER_DATA ) sheetData : SheetConstructionData ,
75- @Inject ( GLOBAL_HEADER_HEIGHT ) globalHeaderHeight : string ,
7675 layoutChange : LayoutChangeService
7776 ) {
7877 const sheetConfig : SheetOverlayConfig = sheetData . config ;
@@ -85,7 +84,7 @@ export class SheetOverlayComponent {
8584
8685 this . isComponentSheet = ! ( sheetConfig . content instanceof TemplateRef ) ;
8786 this . renderer = sheetConfig . content ;
88- this . popoverRef . height ( this . getHeightForPopover ( globalHeaderHeight , sheetConfig . position ) ) ;
87+ this . popoverRef . height ( '100vh' ) ;
8988 this . setWidth ( ) ;
9089 this . navigationParams = sheetConfig . pageNavParams ;
9190 this . rendererInjector = Injector . create ( {
@@ -137,8 +136,4 @@ export class SheetOverlayComponent {
137136 return '100%' ;
138137 }
139138 }
140-
141- private getHeightForPopover ( globalHeaderHeight : string , position ?: PopoverFixedPositionLocation ) : string {
142- return position === PopoverFixedPositionLocation . Right ? '100vh' : `calc(100vh - ${ globalHeaderHeight } )` ;
143- }
144139}
0 commit comments