isExpanded() would always retun true if called before layout.