diff options
author | Hyerim Bae <hyerim.bae@samsung.com> | 2012-09-05 22:13:15 +0900 |
---|---|---|
committer | Hyerim Bae <hyerim.bae@samsung.com> | 2012-09-05 22:18:05 +0900 |
commit | 7d7fc54a3c4f49e123e39f41f8f6f4702dfd7556 (patch) | |
tree | 8278589f2273db9058f33be2a4eb75469df73bc4 | |
parent | b58203becf5f6579d79d2481a050d3da716848c3 (diff) | |
download | browser-7d7fc54a3c4f49e123e39f41f8f6f4702dfd7556.tar.gz browser-7d7fc54a3c4f49e123e39f41f8f6f4702dfd7556.tar.bz2 browser-7d7fc54a3c4f49e123e39f41f8f6f4702dfd7556.zip |
[Title] Fix issue that the layout is not fit in most visited sites when rotate.
[Issue#] N_SE-9166
[Problem] The rotate information is not correct.
[Cause] Check it by window size.
[Solution] Modify to use orientation API.
[Developer] Hyerim Bae
Change-Id: Ie8a43421535c1a2044cbb848359ad82d79d649e6
-rw-r--r--[-rwxr-xr-x] | src/browser-common-view.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/browser-common-view.cpp b/src/browser-common-view.cpp index 197a1635..10ce90c5 100755..100644 --- a/src/browser-common-view.cpp +++ b/src/browser-common-view.cpp @@ -927,16 +927,11 @@ char *Browser_Common_View::_trim(char *str) #if defined(HORIZONTAL_UI) Eina_Bool Browser_Common_View::is_landscape(void) { - int window_w = 0; - int window_h = 0; - evas_object_geometry_get(m_win, NULL, NULL, &window_w, &window_h); - if (window_h > window_w) { - BROWSER_LOGD("portrait"); + app_device_orientation_e rotation_value = app_get_device_orientation(); + if (rotation_value == APP_DEVICE_ORIENTATION_0 || rotation_value == APP_DEVICE_ORIENTATION_180) return EINA_FALSE; - } else { - BROWSER_LOGD("landscape"); + else return EINA_TRUE; - } } #endif |