Kumar
Kumar

Reputation: 237

jquery colorbox shows empty pop up before actual popup

In jquery colorbox demo page itself, you can see that before loading the popup in correct height and width one empty pop up will be loaded with some 600*500 (approx.) size. and then it will be resized automatically according to the content size.

Whether we can change this default behavior. That i don't want to show the empty popup and then resize to actual width and height.

Note:I don't have any images in the popup content. it's just form fields wrapped in table and div tag.

Upvotes: 1

Views: 1138

Answers (1)

Tieson T.
Tieson T.

Reputation: 21201

I'd assume setting the initialWidth and initialHeight to zero should get you what you're after. Otherwise, the source is on Github, so you could always modify the source to load differently.

If it's the blank white content that's bothering you, you might be able to use Mike Alsup's BlockUI (http://jquery.malsup.com/block/) plugin to show a loading animation within the pop-up.

Upvotes: 1

Related Questions