Page 1 of 1

childBrowser resizing

Posted: Wed Aug 07, 2013 12:23 pm
by dmitriy motorin

Hello. I have an external links in my app. It opens in childBrowser. But the page in childBrowser cannot be resizing. How can i add "resize page" functional to childBrowser? Thanks


childBrowser resizing

Posted: Wed Aug 07, 2013 1:02 pm
by Kateryna Grynko

Hi Dmitriy,

Try opening different links. The existing of possibility to scale page is regulated by opened page via page attributes.


childBrowser resizing

Posted: Wed Aug 07, 2013 2:23 pm
by dmitriy motorin

No one link has scale possibles :( how can i solve this problem ? may be open links via external browser ?


childBrowser resizing

Posted: Thu Aug 08, 2013 9:01 am
by Anton Artyukh5836028

Please, try to open "http://gs.statcounter.com" in childBrowser on real device. On this page you can use pinch to zoom.

Most of modern sites have responsive design -- web page adjusts for screen size. Old sites (like link above) doesn't have this option.

Just in case, for tests I using this function, which placed in JS-asset:
precodefunction myNavigate( url ) {
var cb;
if ( window.plugins ) {
cb = window.plugins.childBrowser;
}
if ( cb != null ) {
cb.showWebPage( url );
} else {
window.open( url );
};
}/code/pre