开发者

resize shadowbox with HTML content

开发者 https://www.devze.com 2022-12-12 05:28 出处:网络
I\'m using a jquery shadowbox library, wich allows you to show HTML content in a lightbox/shadowbox. (www.shadowbox-js.com)

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号