[WRTjs][VD] LFD, app window size is abnormal after conformant change 90/325490/1
authorzhaosy <shiyusy.zhao@samsung.com>
Wed, 11 Jun 2025 02:07:07 +0000 (10:07 +0800)
committerzhaosy <shiyusy.zhao@samsung.com>
Wed, 11 Jun 2025 02:11:23 +0000 (10:11 +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.

Change-Id: I515e6fb8fd14655cfe1b714a296a40763417f787
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 63486e5ea492f1e227deb6fcc2957759855bc24a..04b5e6b04eb6afcc5ad2f4082beb3863a0399220 100644 (file)
@@ -1506,6 +1506,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 139317e81a98e6c5e8d55476d19b8d68d1a0b3bf..4ffba5f11d101b4cf9644303aa997f1544800a0b 100644 (file)
@@ -181,6 +181,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(