When the separators exist in toolbar and the toolbar shrinks by resizing window,
sometimes the only separators are shown even though the items are hidden. So the separator's visibility is desided by it's previous item. SVN revision: 71093
This commit is contained in:
parent
9d048f4f72
commit
c5fcdbb59c
|
@ -576,7 +576,7 @@ _toolbar_item_prio_compare_cb(const void *i1, const void *i2)
|
|||
static void
|
||||
_fix_items_visibility(Widget_Data *wd, Evas_Coord *iw, Evas_Coord vw)
|
||||
{
|
||||
Elm_Toolbar_Item *it;
|
||||
Elm_Toolbar_Item *it, *prev;
|
||||
Eina_List *sorted = NULL;
|
||||
Evas_Coord ciw = 0, cih = 0;
|
||||
|
||||
|
@ -597,7 +597,13 @@ _fix_items_visibility(Widget_Data *wd, Evas_Coord *iw, Evas_Coord vw)
|
|||
evas_object_geometry_get(VIEW(it), NULL, NULL, &ciw, &cih);
|
||||
if (wd->vertical) *iw += cih;
|
||||
else *iw += ciw;
|
||||
if (!it->separator)
|
||||
it->prio.visible = (*iw <= vw);
|
||||
else
|
||||
{
|
||||
prev = ELM_TOOLBAR_ITEM_FROM_INLIST(EINA_INLIST_GET(it)->prev);
|
||||
it->prio.visible = prev->prio.visible;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue