Accordion extends the size it is intended to have

Heya,

While I just tested making a vertical buttonbar with an accordion I tried a bit unusal senario by giving the accordion less space than it needed to be displayed completly.

The result astound me. I used the default version of the accordion from the UI libary. And set the size to 150 x 58.

If I selected the last line (item four) all lines got displayed. Even though the size I adressed to the accordion is only sufficient to display two of the four lines. Weird....
By selecting item three item four does not get displayed.

Next test was to select item two which has two subitems. Oh supprise diffent result. The subitems extend the availible space of the accordion and get displayed. Item three and four are not visible.

Now I selected Item one and i see only item one O.O

Final test by selecting none all for main entries got displayed. Now I would have expected to see only the first two.

I know the usecase is not the standard case but the behaivior of the accordion was astonishing unexpected. I personaly do not have a problem with it right now, but what I would have expected was either:

- a warning: The size you choosed for your accordion is so small that not all entries can be displayed. Do you want to resize your accordion to minimum size? Yes/No

or

- Only the first items get displayed that fit into the space and the other items that extend the availible space to not get displayed.

Let me know if you need screenshots.

Greetings Florian

Ps. I just had 5 min:
1 person has
this problem
+1
Reply