Fix NMT layout issue in floating mode 82/259182/4
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 2 Jun 2021 02:27:01 +0000 (11:27 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Wed, 2 Jun 2021 05:44:48 +0000 (14:44 +0900)
Change-Id: Ic8eb5a55fec8e722822f012cc47e072f9f68537b
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/ise-nmt-mode.cpp

index 76df939..457f274 100644 (file)
@@ -189,21 +189,6 @@ void ise_nmt_show_layout(int screen_degree, bool is_candidate_on, Evas_Object *m
                 evas_object_resize(layout, width, ui->get_scaled_y(landscape_device ? ISE_HEIGHT_PORT : ISE_HEIGHT_LAND));
             }
         }
-
-        if (screen_degree == 0 || screen_degree == 180) {
-            if (landscape_device) {
-                evas_object_resize(layout, width - ui->get_scaled_y(NMT_LAYOUT_LEFT_MARGIN*2), ui->get_scaled_y(ISE_HEIGHT_LAND));
-                evas_object_move(layout, ui->get_scaled_y(NMT_LAYOUT_LEFT_MARGIN), y);
-            }
-        } else {
-            if (config_values->floating_mode) {
-                evas_object_resize(layout, (width - ui->get_scaled_y(NMT_LAYOUT_LEFT_MARGIN*2)) * FLOATING_SCALE_RATE, (ui->get_scaled_y(ISE_HEIGHT_LAND)) * FLOATING_SCALE_RATE);
-                evas_object_move(layout, ui->get_scaled_y(NMT_LAYOUT_LEFT_MARGIN), y + FLOATING_TITLE_BAR_HEIGHT);
-            } else {
-                evas_object_resize(layout, width - ui->get_scaled_y(NMT_LAYOUT_LEFT_MARGIN*2), ui->get_scaled_y(landscape_device ? ISE_HEIGHT_PORT : ISE_HEIGHT_LAND));
-                evas_object_move(layout, ui->get_scaled_y(NMT_LAYOUT_LEFT_MARGIN), y);
-            }
-        }
     }
 
     /* Add Source language hoversel */