projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c454498
)
Rotate window for landscape mode mobile only
author
JongHeon Choi
<j-h.choi@samsung.com>
Fri, 30 Sep 2016 07:27:30 +0000
(16:27 +0900)
committer
JongHeon Choi
<j-h.choi@samsung.com>
Fri, 30 Sep 2016 07:27:37 +0000
(16:27 +0900)
runtime/browser/web_application.cc
patch
|
blob
|
history
diff --git
a/runtime/browser/web_application.cc
b/runtime/browser/web_application.cc
index
3f4f5de
..
f7b9213
100644
(file)
--- a/
runtime/browser/web_application.cc
+++ b/
runtime/browser/web_application.cc
@@
-408,6
+408,7
@@
void WebApplication::Launch(std::unique_ptr<common::AppControl> appcontrol) {
window_->SetContent(view->evas_object());
+#ifdef PROFILE_MOBILE
// rotate and resize window forcibily for landscape mode.
// window rotate event is generated after window show. so
// when app get width and height from viewport, wrong value can be returned.
@@
-417,6
+418,7
@@
void WebApplication::Launch(std::unique_ptr<common::AppControl> appcontrol) {
elm_win_rotation_with_resize_set(window_->evas_object(), 270);
evas_norender(evas_object_evas_get(window_->evas_object()));
}
+#endif // PROFILE_MOBILE
view->LoadUrl(res->uri(), res->mime());
view_stack_.push_front(view);