Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CollapsiblePanelExtender doesn't open up all the way on initial page load

I'm using CollapsiblePanelExtender from AjaxControlToolkit, it works fine when i click on it, but it won't expand all the way on the initial page load (expands about 90%).

I have to collapse it and expand it back manually for it to open up all the way.

I don't have the ExpandedSize property set, because the panel content is dynamic.

Any ideas?

like image 740
roman m Avatar asked Dec 30 '22 05:12

roman m


1 Answers

Use the following style on the target of the extender:

.collapsiblePanelContainer {
  height: 0;
  overflow: hidden;
}

The CollapsiblePanelExtender will take care of the rest of the work.

This tip is mentioned by Joe Stagner in the CollapsiblePanelExtender video.

like image 145
Jim H. Avatar answered Jan 13 '23 11:01

Jim H.