on Android, after close the modalview, still show shade in the screen.

7 posts, 0 answers
  1. Chun
    Chun avatar
    1 posts
    Member since:
    Jun 2012

    Posted 18 Dec 2012 Link to this post

    on Android, after close the modalview, still show shade in the screen. please see the attachment
  2. Kamen Bundev
    Admin
    Kamen Bundev avatar
    1532 posts

    Posted 19 Dec 2012 Link to this post

    Hello Chun,

    Which version of Kendo UI Mobile are you using? This issue is caused by an Android 3D transformation bug and should be worked around in Q3 release of Kendo UI Mobile.

    Kind regards,
    Kamen Bundev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Rudi
    Rudi avatar
    3 posts
    Member since:
    Jun 2012

    Posted 19 Dec 2012 Link to this post

    We have the same issue in Kendo UI Mobile v2012.2.1029. Adding this to the close method for Popup seems to help:
    if (typeof options.deactivate === "function") {            
    options.deactivate();            
    }   

    The reason is that Shim uses Popup and passes in deactivate expecting to be notified when Popup closes.

    I think that the same issue might apply to newer versions too... We are still looking into some issues with the modal view, so there might be more bugs here.

    Update 1:
    Adding this to the modalview-divs resolves most of the remaining issues:
     style="width: 300px; height: 190px;"

    Now, if we open a modal view, rotate the device and close it, the shim is still there. Any suggestions? Any better workarounds than the ones we are using now?

    Update 2:
    The issue is present if the device is in landscape mode (Samsung Galaxy SII, Android 4.0.4) when I close the modal view. It doesn't matter if I rotate before/after I open the modal view. Workaround: Change Shim like this (line 11087):
                    deactivate: function () {
                        shim.hide();
                        $(".km-shim").hide();
                    },
    This indicates that the wrong shim gets closed for some reason. This is not a clean solution, and I hope that the Kendo team can solve this issue a better way based on my feedback.
  5. Kamen Bundev
    Admin
    Kamen Bundev avatar
    1532 posts

    Posted 20 Dec 2012 Link to this post

    Hi Rudi,

    The issue you describe is not related to the shim transparency left on the screen after ModalView closure on Android devices - the latter is an Android bug and the underlying HTML elements can still be accessed even when the View looks overlayed by the Shim. Can you also check if the Q3 release fixes your issue and open a separate thread or ticket about it if you still do experience it?

    Regards,
    Kamen Bundev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  6. Rudi
    Rudi avatar
    3 posts
    Member since:
    Jun 2012

    Posted 20 Dec 2012 Link to this post

    All of the posts in this thread are related. Yes, there is an Android bug causing some of this. We use Kendo UI Mobile hoping that we should not need to write all the workarounds ourselves. Some of the changes I have suggested are workarounds for the Android bug, and some is related to your code. Your code with my changes = working modal view. Your code without them: Not OK. I looked at the Q3 code and it seemed to have the same issues, but we have not tested this with the Q3 release since it causes other issues for us.

    If the Shim is still there or if it just looks like it is still there: Doesn't matter at all for the end users - still a bug and looks bad. My point is that Kendo UI Mobile should implement the workarounds required to solve this.

    I guess we have to use our workarounds for now and then test with Q3 later on, but as far as I can tell right now it will have at least some of the issues.
  7. Rudi
    Rudi avatar
    3 posts
    Member since:
    Jun 2012

    Posted 20 Dec 2012 Link to this post

    Tested with Kendo UI Mobile v2012.3.1210.
    Same issues and same workarounds...

    Why do I need to duplicate this thread?
  8. Kamen Bundev
    Admin
    Kamen Bundev avatar
    1532 posts

    Posted 21 Dec 2012 Link to this post

    Hello Rudi,

    Just for the test I tried here with several Android devices and versions (4.0.4, 4.1, 4.2) to reproduce your issue with both Q3 release and and latest internal builds and wasn't able to, regardless of the orientation. Maybe something else is affecting the ModalView closure? Can you send me a sample page where I can reproduce your issue and help you fix it?

    I offered you to open a new thread because I believe your issue is different than the artifact based one that was fixed for the Q3 release (the fix was just CSS based).

    Regards,
    Kamen Bundev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top
Kendo UI is VS 2017 Ready