fix initial list width (dont overlap scrollbar)

SVN revision: 56267
This commit is contained in:
Hannes Janetzek 2011-01-22 22:24:09 +00:00
parent d8309aeb84
commit 5f014d9089
1 changed files with 5 additions and 1 deletions

View File

@ -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;