change webview setting regarding automatically fitting content to device wdith
authorYunchan Cho <yunchan.cho@samsung.com>
Fri, 22 Feb 2013 07:17:47 +0000 (16:17 +0900)
committerYunchan Cho <yunchan.cho@samsung.com>
Fri, 22 Feb 2013 07:33:06 +0000 (16:33 +0900)
[Issue#] DCM-561
[Problem] when webview is resized to other size, its content like font/image is changed to smaller size or bigger size
[Cause] Change of content has been caused by webkit setting regarding automatical fitting web content to device's width
[Solution] webkit setting is changed not to set fitting web content to devices' width automatically.

Change-Id: Idd5f8cae481c1273c5e4ee2f4252f6dff2639e40

src/view/webkit/view_logic.cpp

index 4d3bf0c..9cd73b2 100644 (file)
@@ -652,7 +652,9 @@ void ViewLogic::prepareEwkView(Evas_Object *wkView)
     //      elm_webview_show_magnifier_set(EINA_FALSE);
     ewk_settings_javascript_enabled_set(settings, EINA_TRUE);
     ewk_settings_loads_images_automatically_set(settings, EINA_TRUE);
-    ewk_settings_auto_fitting_set(settings, EINA_TRUE);
+    // WRT should not fit web contents to device width automatically as default.
+    // Fitting to device width should be handled by web content using viewport meta tag.
+    ewk_settings_auto_fitting_set(settings, EINA_FALSE);
 
     // disable zoom option when user click the input field
     // this option is useful with the normal website