Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Rendering problem on webbrowser in android app firemonkey


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 5 - Last Post: Jun 6, 2014 3:13 AM Last Post By: giancarlo alban...
giancarlo alban...

Posts: 54
Registered: 12/15/02
Rendering problem on webbrowser in android app firemonkey  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 11, 2014 1:44 AM
Hi.
I have tryed the TWebBrowser demos

http://docwiki.embarcadero.com/RADStudio/XE5/en/Mobile_Tutorial:_Using_the_Web_Browser_Component_(iOS_and_Android)

If i try to open for example the url

http://www.webnews.it/2014/04/10/windows-phone-8-1-scaricare-lupdate-in-anticipo/?ref=post

into native Android Web Browser Program,
i see all page into screen (is not present horizontal scroll bar)
This page seems to be responsive

Instead, the same url in FireMonkey is not seen correctly:
The page is great,
appears the horizontal bar.

If TWebBrowser uses the native browser,
why this difference in rendering?
It's possible set a parameter to fit the content of the page to the screen width?

Also does not work automatic zooming, tapping twice on the content to enlarge.

Does anyone have any idea to solve the problem?
Eli M

Posts: 1,346
Registered: 11/9/13
Re: Rendering problem on webbrowser in android app firemonkey  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 11, 2014 7:42 AM   in response to: giancarlo alban... in response to: giancarlo alban...
Try the DPF Android third party WebView wrapper. It will give you more control.

http://sourceforge.net/projects/dpfdelphiandroid/
Giancarlo Alban...

Posts: 1
Registered: 11/23/08
Re: Rendering problem on webbrowser in android app firemonkey  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 15, 2014 3:06 AM   in response to: Eli M in response to: Eli M
The problem persists.
Do you know the parameter to be set in the web browser to adapt the content to the page?
giancarlo alban...

Posts: 54
Registered: 12/15/02
Re: Rendering problem on webbrowser in android app firemonkey  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Apr 17, 2014 1:48 AM   in response to: giancarlo alban... in response to: giancarlo alban...
i have founded a partial solution to fix XE5 and XE6 bug on TWebBrowser component

http://stackoverflow.com/questions/16371768/twebbrowser-zoom-gesture-is-not-working-for-firemonkey-ios-in-xe4-when-open-a-pd

but i don't understand
how use the command

FWebView.setScalesPageToFit(true);

XE6 don't compile setScalesPageToFit(true); in android
Joachim Buchner

Posts: 7
Registered: 8/17/12
Re: Rendering problem on webbrowser in android app firemonkey  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 4, 2014 11:39 PM   in response to: giancarlo alban... in response to: giancarlo alban...
In your first post you are talking about website problems. The link in your last post is for pdf files only. What is the exact problem now?
giancarlo alban...

Posts: 54
Registered: 12/15/02
Re: Rendering problem on webbrowser in android app firemonkey  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 6, 2014 3:13 AM   in response to: Joachim Buchner in response to: Joachim Buchner
website problems.
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02