adjust image history position
authorHyoyoung Chang <hyoyoung.chang@samsung.com>
Thu, 7 Oct 2010 08:01:11 +0000 (17:01 +0900)
committerHyoyoung Chang <hyoyoung.chang@samsung.com>
Thu, 7 Oct 2010 08:01:11 +0000 (17:01 +0900)
data/themes/cbhmdrawer.edc
src/clipdrawer.c

index cde7d67..5125398 100644 (file)
@@ -110,8 +110,8 @@ collections
                                description
                                {
                                        state: "default" 0.0;
-                                       rel1 { relative: 0.0916666666 0.0537313432; to: background; }
-                                       rel2 { relative: 1.0 0.3641791044; to: background; }
+                                       rel1 { relative: 0.0916666666 0.0656716418; to: background; }
+                                       rel2 { relative: 1.0 .3771493537; to: background; }
                                        color: 0 0 0 0;
                                }
                        }
@@ -159,7 +159,7 @@ collections
                                description
                                {
                                        state: "default" 0.0;
-                                       rel1 { relative: 0.005 0.006; to: "texthistory/bg"; }
+                                       rel1 { relative: 0.005 0.02; to: "texthistory/bg"; }
                                        rel2 { relative: 0.995 1.0; to: "texthistory/bg"; }
                                }
                        }
index 123032b..4466d19 100644 (file)
@@ -184,6 +184,7 @@ int clipdrawer_init(void *data)
        evas_object_smart_callback_add(ad->imggrid, "selected", grid_selected, ad);
        evas_object_size_hint_weight_set(ad->imggrid, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
 
+
        elm_gengrid_clear(ad->imggrid);
 
        gic.item_style = "default_grid";
@@ -205,6 +206,17 @@ int clipdrawer_init(void *data)
 
        evas_object_show (ad->imggrid);
 
+// for debugging, calc image history pos
+/*
+   Evas_Coord x, y, w, h;
+   Evas_Coord vx, vy, vw, vh;
+
+   edje_object_part_geometry_get(elm_layout_edje_get(ad->ly_main),"imagehistory/list",&x,&y,&w,&h);
+   evas_object_geometry_get (ad->imggrid, &vx,&vy,&vw,&vh);
+   fprintf(stderr, "## x = %d, y = %d, w = %d, h = %d\n", x, y, w, h);
+   fprintf(stderr, "## vx = %d, vy = %d, vw = %d, vh = %d\n", vx, vy, vw, vh);
+*/
+
        ad->txtlist = elm_list_add(ad->win_main);
        elm_layout_content_set(ad->ly_main, "texthistory/list", ad->txtlist);
        elm_list_horizontal_mode_set(ad->txtlist, ELM_LIST_COMPRESS);