state expanded/collapsed is unknown until the view has been drawn so I removed this assert.