forked from enlightenment/efl
handle textblock fixed with and variable height as a result formatting with
min size calcs SVN revision: 16780
This commit is contained in:
parent
8de24f02e4
commit
d9933843b6
|
@ -860,10 +860,12 @@ edje_object_size_min_calc(Evas_Object *obj, Evas_Coord *minw, Evas_Coord *minh)
|
||||||
{
|
{
|
||||||
Edje_Real_Part *ep;
|
Edje_Real_Part *ep;
|
||||||
int w, h;
|
int w, h;
|
||||||
|
int didw;
|
||||||
|
|
||||||
ep = l->data;
|
ep = l->data;
|
||||||
w = ep->w - ep->req.w;
|
w = ep->w - ep->req.w;
|
||||||
h = ep->h - ep->req.h;
|
h = ep->h - ep->req.h;
|
||||||
|
didw = 0;
|
||||||
if (!((ep->chosen_description) &&
|
if (!((ep->chosen_description) &&
|
||||||
(ep->chosen_description->fixed.w)))
|
(ep->chosen_description->fixed.w)))
|
||||||
{
|
{
|
||||||
|
@ -872,16 +874,22 @@ edje_object_size_min_calc(Evas_Object *obj, Evas_Coord *minw, Evas_Coord *minh)
|
||||||
maxw = w;
|
maxw = w;
|
||||||
ok = 1;
|
ok = 1;
|
||||||
pep = ep;
|
pep = ep;
|
||||||
|
didw = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!((ep->chosen_description) &&
|
if (!((ep->chosen_description) &&
|
||||||
(ep->chosen_description->fixed.h)))
|
(ep->chosen_description->fixed.h)))
|
||||||
{
|
{
|
||||||
if (h > maxh)
|
if (!((ep->part->type == EDJE_PART_TYPE_TEXTBLOCK) &&
|
||||||
|
(!ep->chosen_description->text.min_x) &&
|
||||||
|
(didw)))
|
||||||
{
|
{
|
||||||
maxh = h;
|
if (h > maxh)
|
||||||
ok = 1;
|
{
|
||||||
pep = ep;
|
maxh = h;
|
||||||
|
ok = 1;
|
||||||
|
pep = ep;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue