don't invert part alignment when the part is smaller than the min size. this means that an alignment of 0.0 will *always* be top/left.

SVN revision: 12069
This commit is contained in:
tsauerbeck 2004-10-29 22:32:35 +00:00 committed by tsauerbeck
parent bb12db6879
commit 2b81462e95
1 changed files with 2 additions and 2 deletions

View File

@ -585,7 +585,7 @@ _edje_part_recalc_single(Edje *ed,
if (params->w < minw)
{
params->x = params->x +
((params->w - minw) * (1.0 - desc->align.x));
((params->w - minw) * desc->align.x);
params->w = minw;
}
}
@ -597,7 +597,7 @@ _edje_part_recalc_single(Edje *ed,
if (params->h < minh)
{
params->y = params->y +
((params->h - minh) * (1.0 - desc->align.y));
((params->h - minh) * desc->align.y);
params->h = minh;
}
}