Skip to main content

Search and Top Navigation

#6162 closed feature (wontfix)

Opened October 07, 2010 03:48PM UTC

Closed October 21, 2010 02:50AM UTC

Accordion: Allow fillSpace to work when the accordion has siblings

Reported by: ddegasperi Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.accordion Version: 1.8.5
Keywords: Cc:
Blocked by: Blocking:
Description

fillSpace currently assumes that the accordion is the only child of its parent. It should allow for siblings to take up space within the parent as well. The calculation should also account for any hidden headers.

Attachments (0)
Change History (2)

Changed October 08, 2010 01:40PM UTC by scottgonzalez comment:1

description: Hi, \ if the parent element of my accordion widget contains other child elements, the method resize of the accordion not take the height of these other child elements into account for calculating height of the active accordion content. As by now, the accordion widget does not fit into the parent element. \ The same thing happenes if a header of the accordion is not visible. In this case the accordion-height is less then the parent height. \ Code to illustrate the issues can be provided.fillSpace currently assumes that the accordion is the only child of its parent. It should allow for siblings to take up space within the parent as well. The calculation should also account for any hidden headers.
milestone: TBD1.9
summary: Accordion: fillSpace has wrong maxHeight calculationAccordion: Allow fillSpace to work when the accordion has siblings
type: bugfeature

This is functioning as designed. The documentation for fillSpace says, "If set, the accordion completely fills the height of the parent element. Overrides autoheight." This assumes that the accordion is the only child of the parent.

However, allowing for other children seems reasonable, so I'm changing this to a feature request.

Changed October 21, 2010 02:50AM UTC by scottgonzalez comment:2

resolution: → wontfix
status: newclosed

We don't want to build this in to the accordion. This could be accomplished by creating a new flexbox plugin which expands to the available height and then placing an accordion inside that.