Posted 20 October 2018, 8:47 pm EST
Hi ,
I am using wj-popup and it happes to be my opo up is bigger and it always opens in center is there a way i can open pop alignment to top so i get more space on screen ?
Thanks
Forums Home / Wijmo / General Discussion
Posted by: pmithilesh on 20 October 2018, 8:47 pm EST
Posted 20 October 2018, 8:47 pm EST
Hi ,
I am using wj-popup and it happes to be my opo up is bigger and it always opens in center is there a way i can open pop alignment to top so i get more space on screen ?
Thanks
Posted 22 October 2018, 1:25 am EST
You may handle the shown event and change its top and left position to position popup as required.
Please refer to the following code snippet:
popup.shown.addHandler((s, e) => {
wjcCore.setCss(popup.hostElement, {
top: '0px',
left: '0px'
});
}
You may also refer to the following sample which implements the same: https://stackblitz.com/edit/angular-zgtrwg?file=src%2Fapp%2Fapp.component.ts
~Sharad