javascript - Colorbox not resizing to the correct height -


I am trying to load inline HTML in one colorbox which is working fine, except the colorbox adjustment at the right height Not

Inline HTML content is very long in height (about 15,000 pixels), but only 900 pixels are being loaded.

So I started using the color box .resize () function to fix the problem like:

  $ ('.inline-html'). Color box ({succeed: work () {$ (this). Colorbox.resize ();}});  

But the resize function only works up to 11,000 pixels (not necessarily 15,000 pixels). However, if I refresh the page twice, it completes 15,000 pixels.

Can anyone suggest solutions?

Thanks

<

Thoughts:

  1. I have seen that when there will be images in colorboxes Which are not loaded but full fire, then the color box changes the height of the material except the images, then the picture is loaded and a scrollbar is created. If you can set the height for images of fluctuation, then the problem may be missing because the colorbox will know what size it is immediately before:

      & lt; P & gt; Really long content & Lt; / P & gt; & Lt; P & gt; Really long content & Lt; / P & gt; & Lt; Img src = "image.jpg" height = "300" & gt; & Lt; P & gt; Really long content & Lt; / P & gt;    
    1. If you know that the color box would be 15,000 pixels, would you color the color of that color Can CSS set in that length? Or run $ Colorbox.resize ({height: "15,000"}) ? Perhaps the worst option is to give you time to load the images, after you finish an expiry time of its size. can change. This is unbelievable because the images will be loaded for different people at different times, but if the problem is the picture, then it can help you troubleshoot it.

        window.setTimeout ($. Colorbox.resize (), 500);  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -