Keti777 / dropdown-check-list

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

Applyed CSS in jQuery Ajax'ed Tabs #45

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
<div class="ui-dropdownchecklist-dropcontainer-wrapper" style="position:
absolute; top: -3300px; width: 0px; height: 0px; left: -3300px;">
<div class="ui-dropdownchecklist-dropcontainer" style="overflow-y: auto;
height: 0px;">

On click:
<div class="ui-dropdownchecklist-dropcontainer-wrapper" style="position:
absolute; top: 130.533px; width: 0px; height: 0px; left: 32.8167px;">

So as you can see the height and width are not being set right. If it edit
it in firebug, it will display correctly. Also the z-index is not being set
right.

The jQuery tab is being gen'ed by ajax, and I have:
    $(document).ready(function() {
        $("#s3").dropdownchecklist({ width: 100 });
    });
At the bottom.

Doing a bit more testing im seeing that the tab isnt even fully
loaded/rendered yet(displayed to user), and the _setSize is being triggered. 
So.. hackish trick..
setTimeout("$('#s3').dropdownchecklist({ width: 100 }) ", 500);

Original issue reported on code.google.com by mre...@gmail.com on 7 Dec 2009 at 7:19

GoogleCodeExporter commented 8 years ago
I have a feeling this is related with the popup display problems, I will 
investigate 
it. Thanks

Original comment by adrian.tosca on 10 Dec 2009 at 9:15

GoogleCodeExporter commented 8 years ago
Any iframe involved in all this? See http://code.google.com/p/dropdown-check-
list/issues/detail?id=38&can=1&q=iframe#c6

Original comment by adrian.tosca on 16 Jan 2010 at 7:25

GoogleCodeExporter commented 8 years ago
No, no iframe, just the normal query tabs, using ajax to get the contents.
From what I understand the '.ready' gets triggered on dom finish, not display 
finish.
Your trying to get x,y when the x,y haven't even been setup by the browser.
One would think in firefox it would trigger the '.ready' when the display is 
done.

Original comment by mre...@gmail.com on 16 Jan 2010 at 7:38

GoogleCodeExporter commented 8 years ago
What tab UI/control are you using? 

"The jQuery tab is being gen'ed by ajax"

When exactly is the tab generated? On which event?

Would it be possible to send me a sample code that reproduce the problem?

Original comment by adrian.tosca on 16 Jan 2010 at 7:47

GoogleCodeExporter commented 8 years ago
No follow-up information was ever provided, so no work can be done.

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