I have an issue with Bootstrap panels with AngularJS. I'm not able align correctly my panels. I want to display my panels into 2 columns.
I have the following HTML code:
<div class="row">
<div class="col-lg-3 col-sm-3 col-xs-3">
<span>Some stuffs</span>
</div>
<div class="col-lg-9 col-sm-9 col-xs-9">
<div class="row">
<div class="col-lg-6 col-sm-6 col-xs-6"
ng-repeat="i in items">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">{{i.title}}</h3>
</div>
<div class="panel-body">
{{i.content}}
</div>
</div>
</div>
</div>
</div>
</div>
Basic case: Let's say, I have 3 items. The 2 first items will be displayed in the first row. - item1: row0/col0 - item2: row0/col1 The last item should be displayed in the 2nd row and first column - item3: row1/col0
It works fine when the height of the panels are the same.
My use case: My panel content can be different from each other. So, when my first panel content is bigger than the others, the third item goes to the col1. - item3: row1/col1
It leaves a big space and then if I want to add a 4th item...it becomes ugly :(
I've created a demo showing the issue: http://plnkr.co/edit/TZDck5b9G9Ap32KlPk4q?p=preview