Wijmo pop up alignment to top not center

Posted by: pmithilesh on 20 October 2018, 8:47 pm EST

    • Post Options:
    • Link

    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

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels