This is a migrated thread and some comments may be shown as answers.

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

6 Answers 118 Views
ModalView
This is a migrated thread and some comments may be shown as answers.
Chun
Top achievements
Rank 1
Chun asked on 19 Dec 2012, 05:34 AM
on Android, after close the modalview, still show shade in the screen. please see the attachment

6 Answers, 1 is accepted

Sort by
0
Kamen Bundev
Telerik team
answered on 19 Dec 2012, 09:00 AM
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!
0
Rudi
Top achievements
Rank 1
answered on 19 Dec 2012, 09:48 AM
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.
0
Kamen Bundev
Telerik team
answered on 20 Dec 2012, 09:28 AM
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!
0
Rudi
Top achievements
Rank 1
answered on 20 Dec 2012, 09:58 AM
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.
0
Rudi
Top achievements
Rank 1
answered on 20 Dec 2012, 01:29 PM
Tested with Kendo UI Mobile v2012.3.1210.
Same issues and same workarounds...

Why do I need to duplicate this thread?
0
Kamen Bundev
Telerik team
answered on 21 Dec 2012, 12:03 PM
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!
Tags
ModalView
Asked by
Chun
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
Rudi
Top achievements
Rank 1
Share this question
or