Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tim Sanders on Nov 12, 2008 10:34
open dhtmlx forum
Accordion scroll within object

I am using the accordion control with several attached objects defined as divs. Some of the divs are longer than will fit in the display in the accordion. I have set div attributes such as <div id="wihome" width:100%; height:100%; overflow: auto;>, but still do not get a scroll bar within the accordion panel.

What do I need to do to have the area within an accordion pane have a scroll bar if needed?

Thanks.
Answer posted by Support on Nov 13, 2008 00:59
Try to add position: relative; to div.
Answer posted by Tim Sanders on Nov 13, 2008 06:33

I added position: relative to the div tag and that did not seem to change anything.  My full div is

<div id="wihome" width:100%; height:100%; overflow: auto; position:relative;>

and the related line in my script is

dhxAccord.cells("acc_home").attachObject("wihome");

The accordion displays okay, but the contents of the pane area for "wihome" is truncated and no scroll bar appears.

What else can you suggest?

 

Thanks.

Answer posted by Support on Nov 14, 2008 05:24
Could you please attach any demo? We can't reproduce your issue, all works fine on our side.
http://dhtmlx.com/docs/products/dhtmlxAccordion/samples/components/attach_object.html?un=1226669257000