What I did was add to your class panel
one min-height
, so that there would be a decrease that would cause the objects to collide, and a overflow: hidden
so that what was inside the panels did not overflow.
.panel{
min-height: 100px;
overflow: hidden;
}
Already in the footer
what made the difference was position: absolute
and the bottom: 0
, this way it will be fixed, regardless of the size of the .panel
.
.panel-footer{
position: absolute;
bottom: 0;
width: 100%;
}
Obs.: I used the same handles: "s"
of the question, so the user can only resize vertically and at the bottom. If you don’t want this, you want a full resize, simply remove the handles
and add a min-height/width
and a max-height/width
at the .panel
according to what you want, so that, as @Highlander said, the user does not play around with the layout.
Jsfiddle
I had the same problem and did not find a simple solution to solve this, I even added in your question an example of this, check and see if this is the same problem :)
– Gabriel Rodrigues
exactly, that’s the problem thanks!
– Espiga
@Spike, see if this example suits you if I prepare the answer... http://jsfiddle.net/SamirChaves/unnqmnd8/6/
– Samir Braga
yes fits perfectly thank you
– Espiga