rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=247fe9a13ec28031b24eac6cfc76505dd46b6a20

commit 247fe9a13ec28031b24eac6cfc76505dd46b6a20
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Thu Oct 27 20:06:35 2016 +0300

    live_widget_common: use NOT that many objects inside of heavy content
    
    Fixes T4365
---
 src/bin/ui/live_view/elementary/live_widget_common.c | 18 +++++-------------
 src/bin/ui/live_view/live_widgets.h                  |  1 +
 2 files changed, 6 insertions(+), 13 deletions(-)

diff --git a/src/bin/ui/live_view/elementary/live_widget_common.c 
b/src/bin/ui/live_view/elementary/live_widget_common.c
index bf7a3ff..9ec6f77 100644
--- a/src/bin/ui/live_view/elementary/live_widget_common.c
+++ b/src/bin/ui/live_view/elementary/live_widget_common.c
@@ -270,19 +270,11 @@ object_generate(Demo_Part *part, Evas_Object *object)
               content = elm_scroller_add(object);
               elm_scroller_policy_set(object, ELM_SCROLLER_POLICY_ON,
                                       ELM_SCROLLER_POLICY_ON);
-              table = elm_table_add(content);
-              for (j = 0; j < ELEMENTS_MID_COUNT; j++)
-                {
-                   for (i = 0; i < ELEMENTS_MID_COUNT; i++)
-                     {
-                        bt = elm_button_add(table);
-                        elm_object_text_set(bt, _("User Text"));
-                        elm_table_pack(table, bt, i, j, 1, 1);
-                        evas_object_show(bt);
-                     }
-                }
-              elm_object_content_set(content, table);
-              evas_object_show(table);
+              bt = evas_object_rectangle_add(object);
+              evas_object_size_hint_min_set(bt, ELEMENT_BIG_SIZE, 
ELEMENT_BIG_SIZE);
+              evas_object_color_set(bt, 0, 0, 0, 0);
+              elm_object_content_set(content, bt);
+              evas_object_show(bt);
               break;
            case WIDGET_TOOLBAR:
               content = elm_toolbar_add(object);
diff --git a/src/bin/ui/live_view/live_widgets.h 
b/src/bin/ui/live_view/live_widgets.h
index d12f4fb..d55e303 100644
--- a/src/bin/ui/live_view/live_widgets.h
+++ b/src/bin/ui/live_view/live_widgets.h
@@ -44,6 +44,7 @@
 #define ELEMENTS_SMALL_COUNT 5
 #define ELEMENTS_MID_COUNT   25
 #define ELEMENTS_BIG_COUNT   50
+#define ELEMENT_BIG_SIZE     2000
 
 typedef void (* Swallow_Clean_Func)(const char *, Evas_Object *);
 

-- 


Reply via email to