On 08/14/2012 02:47 PM, Daniel Juyung Seo wrote: > But why it shrinks with box? > > Daniel Juyung Seo (SeoZ) > Indeed. That is a very good question :) I did not have the time or energy (or desire to be honest), to start digging through elm code to find out why.
dh > On Tue, Aug 14, 2012 at 10:01 PM, Enlightenment SVN > <[email protected]> wrote: >> Log: >> Elm: Fix test_entry 8 to not shrink the entry when you start entering >> text into it. Not sure who the brain surgeon was that thought using a >> box here was a good idea, but their surgery license should be revoked ;) >> >> >> >> Author: devilhorns >> Date: 2012-08-14 06:01:02 -0700 (Tue, 14 Aug 2012) >> New Revision: 75258 >> Trac: http://trac.enlightenment.org/e/changeset/75258 >> >> Modified: >> trunk/elementary/src/bin/test_entry.c >> >> Modified: trunk/elementary/src/bin/test_entry.c >> =================================================================== >> --- trunk/elementary/src/bin/test_entry.c 2012-08-14 12:40:41 UTC (rev >> 75257) >> +++ trunk/elementary/src/bin/test_entry.c 2012-08-14 13:01:02 UTC (rev >> 75258) >> @@ -2029,7 +2029,7 @@ >> { >> Evas_Object *win, *gd, *rect, *en, *lb; >> Evas_Object *bt, *en2; >> - Evas_Object *ch, *en3, *bx; >> + Evas_Object *ch, *en3; >> Evas_Object *en4; >> static Elm_Entry_Filter_Limit_Size limit_filter_data; >> >> @@ -2092,21 +2092,14 @@ >> evas_object_smart_callback_add(bt, "clicked", filter_remove_bt_clicked, >> en); >> evas_object_show(bt); >> >> - bx = elm_box_add(win); >> - evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); >> - elm_win_resize_object_add(win, bx); >> - evas_object_show(bx); >> - >> en3 = elm_entry_add(win); >> elm_entry_scrollable_set(en3, EINA_TRUE); >> elm_entry_scrollbar_policy_set(en3, ELM_SCROLLER_POLICY_OFF, >> ELM_SCROLLER_POLICY_OFF); >> elm_entry_single_line_set(en3, EINA_TRUE); >> evas_object_size_hint_weight_set(en3, EVAS_HINT_EXPAND, >> EVAS_HINT_EXPAND); >> evas_object_size_hint_align_set(en3, EVAS_HINT_FILL, EVAS_HINT_FILL); >> - >> - elm_box_pack_end(bx, en3); >> evas_object_show(en3); >> - elm_grid_pack(gd, bx, 5, 35, 90, 20); >> + elm_grid_pack(gd, en3, 5, 35, 90, 20); >> >> bt = elm_icon_add(win); >> elm_icon_standard_set(bt, "home"); >> @@ -2214,6 +2207,7 @@ >> evas_object_show(bx); >> >> np = elm_entry_add(win); >> + elm_entry_line_wrap_set(np, ELM_WRAP_MIXED); >> elm_entry_scrollable_set(np, EINA_TRUE); >> elm_entry_file_set(np, "note.txt", ELM_TEXT_FORMAT_PLAIN_UTF8); >> evas_object_size_hint_weight_set(np, EVAS_HINT_EXPAND, >> EVAS_HINT_EXPAND); >> >> ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
