google-code-export / dropdown-check-list

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

Drop content is invisible when dropdown-check-list initialized into a hidden element. #265

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
** What steps will reproduce the problem?

Initialize dropdownchecklist in a hidden content.

** What is the expected output? What do you see instead?

Do not see dropdown.

** What is your environment?
-- DropDownCheckList version: 1.4
-- jQuery version: 1.7.1
-- jQuery UI version: 1.8.18
-- Browser and version: IE, Chrome

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

Drop content is invisible when dropdown-check-list initialized into invisible 
element. You use outerHeight and outerWeigh functions which do not calculate 
values correct when content is hidden. 

            var divWidth = dropContainerDiv.outerWidth();
            var divHeight = dropContainerDiv.outerHeight();

E.g. I load dynamic content into dialog via Ajax. The first time values are 
calculated correct but the others they are always 2. 

Original issue reported on code.google.com by dal7.mo...@tut.by on 28 Aug 2012 at 4:15

GoogleCodeExporter commented 9 years ago
This is a known problem.

You can look at the TESTCASE page to see some examples

Original comment by womohun...@ittrium.com on 28 Aug 2012 at 5:26

GoogleCodeExporter commented 9 years ago
Why don't do a dropbox initialization in the first show? This can resolve the 
issue.

Original comment by dal7.mo...@tut.by on 29 Aug 2012 at 6:20