Ticket #4208 (closed bug: fixed)

Opened 4 years ago

Last modified 3 years ago

ui.accordion overflows over it's container when one of its divisions has a scroll bar

Reported by: margenn Owned by:
Priority: minor Milestone: 1.8.2
Component: ui.accordion Version: 1.6rc6
Keywords: accordion overflow fillSpace Cc:
Blocking: Blocked by:

Description

This happens when you put the accordion div inside a parent fixed-size div and choose "fillSpace: true" option.

This happened on firefox 3.0.6, Chrome. On IE6, the entire parent conteiner resized a few pixels

I turned around this by putting a "overflow:hidden" on parent div. There's an attachment with shows better what is happening. Tks!

Attachments

accordion-bug.rar Download (94.3 KB) - added by margenn 4 years ago.
html file with jquery library and ui to recriate the bug.

Change History

Changed 4 years ago by margenn

html file with jquery library and ui to recriate the bug.

comment:1 Changed 4 years ago by joern.zaefferer

  • Milestone changed from TBD to 1.next

comment:2 Changed 4 years ago by joern.zaefferer

  • Milestone changed from 1.next to 1.7

comment:3 Changed 4 years ago by rdworth

  • Milestone changed from 1.7 to 1.8

comment:4 Changed 4 years ago by bkilinc

I found out that the resize() function of the accordion object does not see margins. to correct this I changed outerHeight() function calls to outerHeight(true), which will include margin heights. And it worked for me;

example change

maxHeight -= $(this).outerHeight();

to

maxHeight -= $(this).outerHeight(true);

and change

maxHeight = Math.max(maxHeight, $(this).outerHeight());

to

maxHeight = Math.max(maxHeight, $(this).outerHeight(true));

comment:5 Changed 3 years ago by scott.gonzalez

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone changed from 1.9 to 1.8.2

This was fixed in a previous release.

Note: See TracTickets for help on using tickets.