forked from enlightenment/enlightenment
fix initial list width (dont overlap scrollbar)
SVN revision: 56267
This commit is contained in:
parent
d8309aeb84
commit
5f014d9089
|
@ -395,6 +395,10 @@ _e_smart_reconfigure_do(void *data)
|
|||
Evas_Coord aspect_w, aspect_h;
|
||||
|
||||
if (!sd) return ECORE_CALLBACK_CANCEL;
|
||||
|
||||
sd->idle_enter = NULL;
|
||||
if (sd->w < 1) return ECORE_CALLBACK_CANCEL;
|
||||
|
||||
if (sd->cx > (sd->cw - sd->w)) sd->cx = sd->cw - sd->w;
|
||||
if (sd->cy > (sd->ch - sd->h)) sd->cy = sd->ch - sd->h;
|
||||
if (sd->cx < 0) sd->cx = 0;
|
||||
|
@ -821,7 +825,7 @@ _pan_item_select(Evas_Object *obj, Item *it, int scroll)
|
|||
Smart_Data *sd = evas_object_smart_data_get(obj);
|
||||
double align = -1;
|
||||
int prev = -1;
|
||||
|
||||
|
||||
if (sd->cur_item)
|
||||
{
|
||||
prev = sd->cur_item->y / (1 + sd->cur_item->h);
|
||||
|
|
Loading…
Reference in New Issue