Opened 10 years ago

Last modified 10 years ago

#8140 closed bug

nested accordion is oversized — at Version 5

Reported by: rp Owned by:
Priority: major Milestone: 1.9.0
Component: ui.accordion Version: 1.8.17
Keywords: Cc:
Blocked by: Blocking:

Description (last modified by Scott González)

Nested accordions get the wrong width, unless width: auto is applied to the inner accordion's style.

Change History (5)

comment:1 Changed 10 years ago by Scott González

Resolution: invalid
Status: newclosed

I'm not sure what you're expecting this to do. You have headers as accordions, and tables can't be accordions.

comment:2 Changed 10 years ago by rp

my comment on the tables are just that - a comment "btw". I kind of expected that, but wanted to take this opportunity for confirmation.

The ticket is regarding, oversized internal accordion.

Have you tried the included HTML with, and without the STYLE="width:auto"? I've tried it on Chrome and on Iceweasel, both render the internal accordion protruding rightward unless "width:auto" is added.

comment:3 Changed 10 years ago by Scott González

Tables aren't supported, so your test case is invalid.

comment:4 Changed 10 years ago by rp

Pls. pls - forget the table.

have a look at the section where only H4 and DIVs are.

... or, let mi rephrase the exposing example (no tables now):

<script src="/js/jquery-1.7.1.min.js"></script>
<script src="/js/jquery-ui-1.8.17.custom.min.js"></script>
<script type="text/javascript">
        $(function() {
                $( ".internal" ).accordion();
                $( ".external" ).accordion();
                $( ".tabami" ).tabs();
                $( ".internal h4" ).css('padding-left', '20px');
                $( ".external h1" ).css('padding-left', '20px');

<link rel="stylesheet" type="text/css" href="/css/smoothness/jquery-ui-1.8.17.custom.css" />

<div class="external">
<div class="internal" style="width:auto">
 <h4>Pierwszy</h4> <div id="111">
 Pierwszy nieziemskie obrazek nacierski
 </div> <h4>Drugi</h4> <div id="112">
 Ala ma kota a kot ma ale
 </div> <h4>Czeci</h4> <div id="113">
 Wlaz kotel na plotek i mruga
 </div> <h4>Warty</h4> <div id="114">
 A to heca do pieca
 </div> <h4>Piaty</h4> <div id="115">


<div class="internal" style="width:auto">
 <h4>Pierwszy</h4> <div id="11">
 Pierwszy nieziemskie obrazek nacierski
 </div> <h4>Drugi</h4> <div id="12">
 Ala ma kota a kot ma ale
 </div> <h4>Czeci</h4> <div id="13">
 Wlaz kotel na plotek i mruga
 </div> <h4>Warty</h4> <div id="14">
 A to heca do pieca
 </div> <h4>Piaty</h4> <div id="15">


comment:5 Changed 10 years ago by Scott González

Description: modified (diff)
Resolution: invalid
Status: closedreopened

I've cleaned up the ticket description. In the future please do not paste code into tickets. Use jsbin or jsFiddle as mentioned in the red box.

Note: See TracTickets for help on using tickets.