Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Window popup not align in centre on Android/Iphone

    Hi,

    We are using GWT 2.8.2 and SmartGWT 6.1-p20170724 power version.

    On first time on both android and iPhone popup created by Window.show() comes in centre however if I close the popup and open it again, it moves to the top of the screen instead of centre.

    code :
    Code:
      
     window = new Window();
    window.setIsModal(true);
    window.setShowModalMask(true);
    window.setKeepInParentRect(true);
    window.setWidth(350);
    window.setTitle(MESSAGES.configViewAddRecipient());
    window.setShowMinimizeButton(false);
    window.setShowMaximizeButton(false);
    window.centerInPage();
    window.setAutoCenter(true);
    window.setShowFooter(false);
    window.setPadding(5);
    window.setHeight(180);
    We tried using Window.setTop() also however it comes with Top: 0px always.
    Last edited by sidharth1917; 25 Apr 2018, 01:59.

    #2
    You need to set:
    Code:
        window.setPlacement(PanelPlacement.NONE);
    See docs here.

    Regards
    Isomorphic Software

    Comment


      #3
      I tried this
      Code:
       
       window.setPlacement(PanelPlacement.NONE);
      and other PanelPlacement also. Nothing working after closing window and open it again.

      On Desktop and Tablet is is working fine however on mobile (both android / Iphone) first time it comes in center which is fine but When i close the window and open again it moves to top.
      Please check by creating sample test case using above mention code.

      Thanks

      Comment


        #4
        We tested your code and the issue was solved by setting setPlacement(PanelPlacement.NONE). Please, re-test using a recent build.

        Regards
        Isomorphic Software

        Comment

        Working...
        X