Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.
This repository was archived by the owner on May 29, 2019. It is now read-only.

accordion does not shrink if contents shrink #138

@jssebastian

Description

@jssebastian

The accordion directive increases the height of the "accordion-body" when contents get larger. However, it does not decrease the height again when contents get smaller again.

Initially, on the accordion-body element I see style="height: auto". After making the contents grow by toggling an ui-if inside the accordion-body, I see style="height: 320px", and the accordion looks fine. The height also grows correctly if I further increase the contents.

However, when contents are removed, the height attribute does not change anymore, so there is a big empty space at the bottom of the accordion-body.

This is tested on chrome with the latest ui-bootstrap from git master branch. Should I put together a jsfiddle/plunkr or is this clear enough?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions