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

childBrowser ignores ViewPort META tag

2 Answers 39 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Brad
Top achievements
Rank 1
Brad asked on 09 Jan 2013, 06:35 PM
The childBrowser plug-in seems to ignore the ViewPort META tag if you use childBrowser.showWebPage() which is rather important for mobile phone development.

If you use childBrowser.openExternal() the ViewPort works fine, but since the browser is outside the application, you don't have access to any of the childBrowser's events (onLocationChange etc.) which defeats the purpose of using childBrowser at all.

According to this post (https://github.com/phonegap/phonegap-plugins/issues/326) the ViewPort can be fixed by adding a couple lines to the showWebPage() method.  Since we don't have access to the plug-in source, any suggestions?

Thanks

2 Answers, 1 is accepted

Sort by
0
Evgeni "Zammy" Petrov
Telerik team
answered on 14 Jan 2013, 05:42 PM
Hi Brad,

Due to the nature of our service, the underlying source code of your project is not modifiable. What we have done is take tagged versions of ChildBrowser from this repo: https://github.com/alunny/ChildBrowser

The latest tagged versions are 4.0.0 and 3.0.4. We support them. If there is any bug in ChildBrowser plugin should be communicated to the plugin support (github issue). The moment there is new version we are going to support it although ChildBrowser plugin seems to be supported from base Cordova APIs soon.

The issue you pointed to seems to be closed. In the source code of 4.0.0 https://github.com/alunny/ChildBrowser/blob/4.0.0/src/android/ChildBrowser.java#L316 you can see on line 316 and 317 the code it was referred in the github issue. 

Is the issue different? Have you been able to reproduce it?

Kind regards,
Evgeni "Zammy" Petrov
the Telerik team

Share feedback and vote for features on our Feedback Portal.
Want some Kendo UI online training - head over to Pluralsight.
0
Brad
Top achievements
Rank 1
answered on 14 Jan 2013, 09:53 PM
Sure enough.  ChildBrowser 4.0 already has my requested mod, and it is working.  Thanks for pointing me in the right direction.
Tags
General Discussion
Asked by
Brad
Top achievements
Rank 1
Answers by
Evgeni "Zammy" Petrov
Telerik team
Brad
Top achievements
Rank 1
Share this question
or