Strange problem after changing skin and title style

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Strange problem after changing skin and title style

Hi. I have modified that shadowbox.js file so that the title appears under the image.
the code looks like this:
skin:{main:'<div id="shadowbox_overlay"></div><div id="shadowbox_container"><div id="shadowbox"><div id="shadowbox_body"><div id="shadowbox_body_inner"></div><div id="shadowbox_title"><div id="shadowbox_title_inner"></div></div><div id="shadowbox_loading"></div></div><div id="shadowbox_toolbar"><div id="shadowbox_toolbar_inner"></div></div></div></div>'

I have also changed the style for #shadowbox_title and #shadowbox_title_inner so that the div will allow more than one line of text
#shadowbox_title {
        padding: 0;
        overflow: hidden;
        background-color: #fff;
#shadowbox_title_inner {
        line-height: 120%;
        font-size: 12px;
        white-space: nowrap;
        padding: 10px 0 4px 8px;
        color: #000;


However, a problem has occurred. It all works ok except one thing. On first loading of shadowbox everything is in order, but if you click to the next image in a gallery, or choose another image on the page, when shadowbox opens again the box is smaller, even for the same image. The only reason I can think for this is that because the title div does have a set height, but I'm no expert at code.