From: JongHeon Choi Date: Fri, 30 Sep 2016 07:27:30 +0000 (+0900) Subject: Rotate window for landscape mode mobile only X-Git-Tag: submit/tizen/20160930.073016^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b792ecf0e577960336fb5ab4ae08a681307103a;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git Rotate window for landscape mode mobile only --- diff --git a/runtime/browser/web_application.cc b/runtime/browser/web_application.cc index 3f4f5dee1..f7b92131c 100644 --- a/runtime/browser/web_application.cc +++ b/runtime/browser/web_application.cc @@ -408,6 +408,7 @@ void WebApplication::Launch(std::unique_ptr 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 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);