Make sure to load layout resource before opening popup 25/224725/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20200213.121633 accepted/tizen/5.5/unified/wearable/hotfix/20201027.111521 submit/tizen_5.5/20200212.120502 submit/tizen_5.5_wearable_hotfix/20201026.184305
authorJi-hoon Lee <dalton.lee@samsung.com>
Wed, 12 Feb 2020 11:16:47 +0000 (20:16 +0900)
committerJi-hoon Lee <dalton.lee@samsung.com>
Wed, 12 Feb 2020 11:17:22 +0000 (20:17 +0900)
Change-Id: I30d5b15c5a66acdf25f17c4486fed9d0ed63a323

scl/sclcontroller.cpp

index f515b16..3e30e45 100644 (file)
@@ -618,6 +618,9 @@ CSCLController::process_button_pressed_event(sclwindow window, sclint x, sclint
                                 popupRect.y = coordinate->y + coordinate->popup_relative_y + baseWndRect.y;
                                 //popupRect.width = utils->get_scale_x(layout->width);
                                 //popupRect.height= utils->get_scale_y(layout->height);
+                                if (!(sclres_manager->loaded(popupLayoutId))) {
+                                    sclres_manager->load(popupLayoutId);
+                                }
                                 popupRect.width = layout->width;
                                 popupRect.height = layout->height;
                                 windows->close_all_popups();
@@ -914,6 +917,9 @@ CSCLController::process_button_long_pressed_event(sclwindow window, sclbyte key_
                                 if (layout) {
                                     //popupRect.width = utils->get_scale_x(layout->width);
                                     //popupRect.height= utils->get_scale_y(layout->height);
+                                    if (!(sclres_manager->loaded(popupLayoutId))) {
+                                        sclres_manager->load(popupLayoutId);
+                                    }
                                     popupRect.width = layout->width;
                                     popupRect.height = layout->height;
 
@@ -1951,6 +1957,9 @@ CSCLController::process_button_release_event(sclwindow window, sclint x, sclint
 
                                     //popupRect.width = utils->get_scale_x(layout->width);
                                     //popupRect.height= utils->get_scale_y(layout->height);
+                                    if (!(sclres_manager->loaded(popupLayoutId))) {
+                                        sclres_manager->load(popupLayoutId);
+                                    }
                                     popupRect.width = layout->width;
                                     popupRect.height = layout->height;