This project is archived and is in readonly mode.

#216 ✓resolved

Accordion offsetWidth returns 0

Reported by eerne | July 10th, 2008 @ 07:23 PM


offsetWidth seems to return 0 which makes the Accordion unusable in horizontal mode (width: true, height: false).

changing offsetWidth to scrollWidth seems to fix and gives good results. note: the width got lost so i had to have an inner div with my desired with.

var Accordion = new Class({
// snip
	initialize: function(){
if (this.options.width) this.effects.width = this.options.fixedWidth ? 'fullWidth' : 'scrollWidth';


Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins


Referenced by