[M130 Migration][WRTjs][VD] LFD, app window size is abnormal after conformant change 93/325493/2
authorzhaosy <shiyusy.zhao@samsung.com>
Wed, 11 Jun 2025 02:52:37 +0000 (10:52 +0800)
committerzhaosy <shiyusy.zhao@samsung.com>
Wed, 11 Jun 2025 04:49:56 +0000 (12:49 +0800)
For not manual rotation app, and menu orientation is portrait mode,
needn't handle conformant change, because app is in the middle of
screen(not full screen), IME can't overlap input-box.

Related Patch:
https://review.tizen.org/gerrit/c/platform/framework/web/chromium-efl/+/325490

Change-Id: I8d6294fce3bcad6784e2d7de7dc86896a7ca45ed
Signed-off-by: zhaosy <shiyusy.zhao@samsung.com>
wrt/src/browser/tv/wrt_native_window_tv.cc
wrt/src/browser/wrt_native_window_on_screen.cc

index 0d5540bd627f9787c52fddee946eac09f3c4e9be..e967ac3e80784aea8e18be958d1cc29c294710e0 100644 (file)
@@ -1515,6 +1515,16 @@ bool WRTNativeWindowTV::WillHandleConformantChange() {
   if (preferred_rotation == 0 &&
       orientation_ != ScreenOrientation::LANDSCAPE_PRIMARY)
     return false;
+
+  // not manual rotation, and menu orientation is portrait mode, needn't handle
+  // conformant change, because app is in the middle of screen(not full screen),
+  // IME can't overlap input-box
+  if (EINA_TRUE != ecore_evas_wm_rotation_manual_rotation_done_get(
+                       GetPlatformCanvas()) &&
+      VconfHandle(kMenuOrientation).Int() == 1) {
+    return false;
+  }
+
   return true;
 }
 
index accffe16abea0d20a484fa7afb1518e4afcbbb36..8de4022695ab2a4cece587c32fd56907816a3a2d 100644 (file)
@@ -182,6 +182,7 @@ void WRTNativeWindowOnScreen::OnConformantChange() {
   gfx::Rect rect(0, 0, width, height);
 
   if (native_window->WillHandleConformantChange()) {
+    LOG(INFO) << "Handle conformant change";
     if (ecore_wl2_window_indicator_state_get(wl2_window) ==
         ECORE_WL2_INDICATOR_STATE_ON) {
       ecore_wl2_window_indicator_geometry_get(