Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

controlling zoom in android tablet

$
0
0
android 4.1.1
Chrome browser
smartclient 9.0d 12-13-2013

I have a page that uses a treegrid. It works fine on and iPad, but not in Android. In Android, it pops up a small window with a zoomed in view of the area I tried to interact with (by clicking a checkbox or some other control in the tree). I'm able to click a checkbox but when I do the zoomed in view pops up anyway and I'm unable to interact with it.

I looked at the samples on the Android device and they didn't pop up a zoomed in view. I added the code below to my page but it didn't change the behavior so I'm wondering what else I might need to do to get the page to work in Android.

Code:

        // In iPad set the initial zoom level to 1.0 and disable scaling.
        // In iPhone, set to large enough to view the app as a whole (but allow the user to scale so
        // they can zoom in and make text readable!).
        if (isc.Browser.isMobileWebkit) {
            isc.Canvas.addProperties({
                scrollbarConstructor: "NativeScrollbar"
            });


            if (isc.Browser.isHandset) {
                isc.Page.updateViewport(null, 700, null, true);
            } else {
                isc.Page.updateViewport(1.0, null, null, true);
            }
        }


Viewing all articles
Browse latest Browse all 4756

Trending Articles