I installed the lightbox2 module. I am displaying nodes in the popup.

The popup works fine. But we have to set the width and height of the popup and if a node has less content or large content the popup width and height are fixed.

If the node has large content then the scroll bar appears in the popup.

My requirments: I want to set the width and height of the popup according to the content. If a node has less content then the popup should be small and if a node has large content then the popup should be large according to the node's content and no scroll bars needed.

So how will I do this? Any one who have idea about this?

Comments

Wario’s picture

Subscribe

dianacastillo’s picture

I also want to know how to do this

dianacastillo’s picture

#lightboxFrame{
overflow:hidden;
height:500px;
}

that gets rid of the scroll bar. but I still want to be able to change the size dynamically

dianacastillo’s picture

Status: Active » Closed (fixed)

here is how to set it:
rel="lightframe[|width:400px; height:300px; scrolling: auto;]"

arun ak’s picture

Thanks dianacastillo! That helps me. One more thing how can I disable caption for popup? Because I am showing html content in popup. So there is no caption needed. But in my popup bottom section is animating like to show caption. How can I prevent that?