Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to properly resize a Bootstrap panel with jQuery UI?

I'm currently struggling with resizing panels in Twitter Bootstrap with the jQuery UI resizable. Horizontal resize works fine (sometimes the resize bars get moved though), but vertical resize acts weird. Here's my fiddle: http://jsfiddle.net/9Nyze/

I've tried setting height to 100% in both the .panel and the .panel-body but that just causes the .panel-body to overflow the div.

like image 722
Seiyria Avatar asked Nov 15 '25 15:11

Seiyria


1 Answers

To solve this, I ended up just tacking a resizable that was on the e side to the .panel and then tacking a resizable that was on the s side to the .panel-body and making the .panel-body have a height: 100%. It works well enough.

like image 76
Seiyria Avatar answered Nov 17 '25 08:11

Seiyria



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!