From: Jihyeon Seol <jihyeon.seol@samsung.com>

Subject: [E-devel] [Patch] elc_multibuttonentry resize patch.

Currently, there is a problem in the logic of getting the size in the
MBE's
box.

For each line, the height of the line is calculated according to the
biggest
item's height 
and is applied to the box size, but problem occurs when the newly added
item's height is larger than the one before.

For example, when the entry is located in the front of the last line, 
the line's height is determined by the entry. 

When the button is added by the user's input at this state, 
because button's height is larger than the entry's height 
I have modified each line to have the equal height.



SVN revision: 75453
This commit is contained in:
Jihyeon Seol 2012-08-20 08:02:47 +00:00 committed by Carsten Haitzler
parent e0552bb3eb
commit de77d3aa99
2 changed files with 5 additions and 3 deletions

View File

@ -380,3 +380,8 @@
* Patch in incomplete access in: colorselecto, win, diskselector,
gengrid, genlist, progressbar, slider, label, entry
2012-08-20 Jihyeon Seol
* Fix sizing issue in multibutton entry by making all lines
the same height.

View File

@ -1251,7 +1251,6 @@ _calculate_box_min_size(Evas_Object *box, Evas_Object_Box_Data *priv)
{
minh += cmaxh;
cw = 0;
cmaxh = 0;
}
cw += ww;
if (cmaxh < mnh) cmaxh = mnh;
@ -1292,7 +1291,6 @@ _calculate_item_max_height(Evas_Object *box, Evas_Object_Box_Data *priv, int obj
{
if (local_index > obj_index) return cmaxh;
cw = 0;
cmaxh = 0;
}
cw += ww;
@ -1374,7 +1372,6 @@ _box_layout_cb(Evas_Object *o, Evas_Object_Box_Data *priv, void *data __UNUSED__
{
ch += cmaxh;
cw = 0;
cmaxh = 0;
}
evas_object_move(obj,