Announcement

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

    Issue with window.isc_useDefaultViewport = false;  after Upgrading smartgwt from 6 to 12 


    Hi there lately i am testing the latest version of smartgwt 12.

    I am using gwt 2.8.2


    with version 6 when i was using window.isc_useDefaultViewport = false then everything in mobile was perfect.

    After the update when load the page with my mobile phone the overflow is like hidden .I cannot move through the page not zoom in no zoom out .

    i created a simple gwt test project to reproduce the issue ..

    public void onModuleLoad() {

    VLayout ALL= new VLayout();
    //ALL.setHeight("100%");
    //ALL.setWidth("100%");
    ALL.setHeight100();
    ALL.setWidth100();
    ALL.setShowEdges(true);

    //ALL.setOverflow(Overflow.VISIBLE);

    Layout UP= new Layout();
    UP.setHeight("10%");
    UP.setWidth("100%");
    UP.setShowEdges(true);

    HLayout CENTER= new HLayout();
    CENTER.setHeight("80%");
    CENTER.setWidth("100%");
    UP.setShowEdges(true);

    HLayout CL= new HLayout();
    CL.setHeight("100%");
    CL.setWidth("10%");
    CL.setShowEdges(true);
    //CL.setShowResizeBar(true);

    HLayout CR= new HLayout();
    CR.setHeight("100%");
    CR.setWidth("90%");
    CENTER.addMember(CL);
    CENTER.addMember(CR);


    HLayout DOWN= new HLayout();
    DOWN.setHeight("10%");
    DOWN.setWidth("100%");
    DOWN.setShowEdges(true);

    ALL.addMember(UP);
    ALL.addMember(CENTER);
    ALL.addMember(DOWN);

    //RootPanel.get("tempid").add(ALL);

    ALL.draw();
    }


    <script type="text/javascript"> window.isc_useDefaultViewport = false; </script>

    The gwt is 2.8.2

    when i use smartgwt 6 everything its running smooth in mobile and with 12 terrible !



    i create a breakpoint in js to check that the window.isc_useDefaultViewport is false and it is !!!


    Thanks in advance









    #2
    We've made a change to ensure that the native touchMove handling is allowed to run in cases like yours where nothing in the widget hierarchy scrolls. If a native touch-scrollable widget were present, you shouldn't have been affected at all by the issue.

    Native browser interaction still may be prevented if a synthetic (Framework-driven) drag or scroll is required for the event target or a canvas in its parent chain, and that's unavoidable.

    The fix has been applied to SGWT 6.1p/SC 11.1p and newer branches, and will be in the nightly builds dated 2020-03-19 and beyond.

    Comment

    Working...
    X