{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/96ac1d35aec188065d5dd7c73b168004?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"96ac1d35aec188065d5dd7c73b168004","url":"https://api.github.com/users/graphicfighter","login":"graphicfighter","id":1159827},"milestone":null,"assignee":null,"labels":[],"updated_at":"2011-11-01T22:48:39Z","comments":15,"closed_at":null,"url":"https://api.github.com/repos/jsor/jcarousel/issues/263","body":"Hi everyone,\r\n\r\nI'm trying to get jcarousel to work in a website that uses a base of jquery simple slide panel (see ex. here: http://www.webdesignerwall.com/demo/jquery/simple-slide-panel.html).\r\n\r\nHere's a screenshot of the step in my website (sorry for the mosaic, it's a business project I'm not supposed to disclose yet) I'm having issues with:\r\nhttp://img339.imageshack.us/img339/4510/screenico.jpg\r\n\r\nI've read around enough to identify my problem: the panel/div that the carousel is into is by default set to \"display:none\" (there is no vertical left panel showing when you land on the homepage, they only appear one at a time and always in the same place as you click on the top menu). I read that the carousel cannot have access to the appropriate dimensions when it's hidden on initialization, thus having the pictures in the carousel stacking vertically, although I can still scroll left and right (self explanatory in my screenshot, I've set the height higher on purpose so that it can be seen).\r\n\r\nMy question is: is there a simple way to work this around and get the carousel to load before it's being hidden by the slide panel stylesheet?\r\n\r\nIf it's of any help, this is the function I'm using for the multiple slide panels:\r\n\r\n$(document).ready(function(){\r\n\t$(\".btn-slide\").click(function(){\r\n\t    var parentID = $(this).parent().attr(\"id\");\r\n\t    var panelID = \"#panel\"+parentID.substr(5);\r\n\t    if ($('.panel:visible:not(\"'+panelID+'\")').length) {\r\n\t        // another, different panel needs to be shown\r\n\t        $('.panel:visible').slideUp(\"slow\", function(){\r\n\t            $('#slide'+$(this).attr(\"id\").substr(5)+' a').toggleClass(\"active\");\r\n    \t    \t    $(panelID).slideDown(\"slow\", function(){\r\n    \t    \t        $('#slide'+$(this).attr(\"id\").substr(5)+' a').toggleClass(\"active\");\r\n    \t    \t    });\r\n\t        });\r\n\t    } else {\r\n\t        if ($(panelID+':visible').length) {\r\n\t            // panel is already visible - close it\r\n\t            $(panelID).slideUp(\"slow\", function(){\r\n\t                $('#slide'+$(this).attr(\"id\").substr(5)+' a').toggleClass(\"active\");\r\n\t            });\r\n\t        } else {\r\n    \t\t    $(panelID).slideDown(\"slow\");\r\n\t\t    $(this).toggleClass(\"active\");\r\n\t\t}\r\n\t    }\r\n            return false;\r\n\t});\r\n});\r\n\r\nI'm a dummy when it comes to adding javascript functions so if you guys have a solution, could you please tell me exactly how and where I should put it in my code?\r\n\r\nMany many thanks!","html_url":"https://github.com/jsor/jcarousel/issues/263","number":263,"title":"Carousel doesn't work in a \"display: none\" slide panel","id":2087842,"created_at":"2011-10-29T18:07:01Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/96ac1d35aec188065d5dd7c73b168004?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"96ac1d35aec188065d5dd7c73b168004","url":"https://api.github.com/users/graphicfighter","login":"graphicfighter","id":1159827},"updated_at":"2011-11-01T22:48:39Z","url":"https://api.github.com/repos/jsor/jcarousel/issues/comments/2597267","body":"Ahah I feel like I'm on the developer hotline today. XD\r\n\r\nI updated the files online, just renamed the css \"preload\" instead of \"global\" and added a few specs for the carousel (which I didn't get why I couldn't merge within one tidy function... I know nothing in terms of JS... sighs).\r\n\r\nSpecificity and order, what do you mean?","id":2597267,"created_at":"2011-11-01T22:48:39Z"}}