Keti777 / dropdown-check-list

Automatically exported from code.google.com/p/dropdown-check-list
1 stars 0 forks source link

The width of the dropdown container gets smaller #124

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
** What steps will reproduce the problem?
- Add the DDCL into a hidden DIV.
- Create a button that unhide the DIV (using the .show() method).

** What is the expected output? What do you see instead?
We expected the dropdown container with the especified width.
We see the dropdown container with a smaller width.

** What is your environment?
-- DropDownCheckList version: 1.0
-- jQuery version: 1.4.2
-- jQuery UI version: 1.8.5
-- Browser and version: IE 8, FF 3.6

** Please provide any additional information below/Please attach sample
html

Original issue reported on code.google.com by f1alv...@yahoo.com.br on 21 Sep 2010 at 9:39

Attachments:

GoogleCodeExporter commented 8 years ago
Please provide a sample .html file so that I have something to test with.  
I am guessing the width fails to calculate properly when the outer container is 
hidden. I would suggest trying this with a fixed width configuration option.

Original comment by womohun...@ittrium.com on 22 Sep 2010 at 1:52

GoogleCodeExporter commented 8 years ago
Thanks for your attention!
Here goes the sample...

Original comment by f1alv...@yahoo.com.br on 22 Sep 2010 at 5:08

Attachments:

GoogleCodeExporter commented 8 years ago
Great Example!
I see the problem in the code, but I want to address several different sizing 
issues that will require some significant rework.  Look for version 1.2  If you 
want to hack at something sooner, look in the _setSize function, where 
            controlWidth = controlWrapper.outerWidth();
which returns a zero when the div is hidden.  You could possibly include a hard 
set from options.width if zero is detected here.

FYI - no bearing on this particular problem, but you will want DDCL v1.1 which 
is compatible 1.4.2 / 1.8.4

Original comment by womohun...@ittrium.com on 25 Sep 2010 at 3:10

GoogleCodeExporter commented 8 years ago
Fixed in 1.3

Original comment by womohun...@ittrium.com on 13 Apr 2011 at 5:18