Maksym Tsymbarov 1 week ago
committed by GitHub
parent
commit
c72913edf0
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 5
      ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/get-value-action-settings.component.ts
  2. 5
      ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/set-value-action-settings.component.ts
  3. 5
      ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/widget-action-settings.component.ts

5
ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/get-value-action-settings.component.ts

@ -135,7 +135,7 @@ export class GetValueActionSettingsComponent implements OnInit, ControlValueAcce
renderer: this.renderer,
componentType: GetValueActionSettingsPanelComponent,
hostView: this.viewContainerRef,
preferredPlacement: ['leftTopOnly', 'leftOnly', 'leftBottomOnly'],
preferredPlacement: 'leftBottom',
context: {
getValueSettings: this.modelValue,
panelTitle: this.panelTitle,
@ -147,7 +147,8 @@ export class GetValueActionSettingsComponent implements OnInit, ControlValueAcce
targetDevice: this.targetDevice,
widgetType: this.widgetType
},
isModal: true
isModal: true,
overlayStyle: { maxHeight: '70vh', height: '100%' }
});
getValueSettingsPanelPopover.tbComponentRef.instance.popover = getValueSettingsPanelPopover;
getValueSettingsPanelPopover.tbComponentRef.instance.getValueSettingsApplied.subscribe((getValueSettings) => {

5
ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/set-value-action-settings.component.ts

@ -121,7 +121,7 @@ export class SetValueActionSettingsComponent implements OnInit, ControlValueAcce
renderer: this.renderer,
componentType: SetValueActionSettingsPanelComponent,
hostView: this.viewContainerRef,
preferredPlacement: ['leftTopOnly', 'leftOnly', 'leftBottomOnly'],
preferredPlacement: 'leftBottom',
context: {
setValueSettings: this.modelValue,
panelTitle: this.panelTitle,
@ -130,7 +130,8 @@ export class SetValueActionSettingsComponent implements OnInit, ControlValueAcce
targetDevice: this.targetDevice,
widgetType: this.widgetType
},
isModal: true
isModal: true,
overlayStyle: { maxHeight: '70vh', height: '100%' }
});
setValueSettingsPanelPopover.tbComponentRef.instance.popover = setValueSettingsPanelPopover;
setValueSettingsPanelPopover.tbComponentRef.instance.setValueSettingsApplied.subscribe((setValueSettings) => {

5
ui-ngx/src/app/modules/home/components/widget/lib/settings/common/action/widget-action-settings.component.ts

@ -120,7 +120,7 @@ export class WidgetActionSettingsComponent implements OnInit, ControlValueAccess
renderer: this.renderer,
componentType: WidgetActionSettingsPanelComponent,
hostView: this.viewContainerRef,
preferredPlacement: ['leftTopOnly', 'leftOnly', 'leftBottomOnly'],
preferredPlacement: 'leftBottom',
context: {
widgetAction: this.modelValue,
panelTitle: this.panelTitle,
@ -128,7 +128,8 @@ export class WidgetActionSettingsComponent implements OnInit, ControlValueAccess
callbacks: this.callbacks,
additionalWidgetActionTypes: this.additionalWidgetActionTypes
},
isModal: true
isModal: true,
overlayStyle: { maxHeight: '70vh', height: '100%' }
});
widgetActionSettingsPanelPopover.tbComponentRef.instance.widgetActionApplied.subscribe((widgetAction) => {
widgetActionSettingsPanelPopover.hide();

Loading…
Cancel
Save