I'm using a jquery shadowbox library, wich allows you to show HTML content in a lightbox/shadowbox. (www.shadowbox-js.com)
My question is: is there any way to dynamically resize the shadowbox when it's already open (the content becomes bigger).
You 开发者_开发百科can set the start dimensions, but it seems pretty hard to change the dimensions later on
thanks,
There's a shadowbox function here: setDimensions(height, width, maxHeight, maxWidth, topBottom, leftRight, padding, preserveAspect)
If you could trigger this function when the content changes in the shadowbox you could get the size of the content and change the dimensions yourself.
I hope that helps. Without more details I can't give you a more specific answer.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论