javascript - Same Height DIV's using NG-Repeat -
i'm having issue trying 2 divs side side same height when content each of divs generated using ng-repeat. flex box stops site being responsive , can't work out when suitable time call jquery function views nested , page doesn't load when new html displayed. have tried ng-repeat-start , end no avail.
ideally once content has loaded div on right same height div on left. appreciate problem.
cheers
edit - code included
<div class="row"> <div class="nospacing col-xs-6"> <div class="col-xs-12 nospacing rottnestgreen"> <div ng-repeat="bh in bikehire" class="row"> <p class="col-xs-6">{{bh.type}}</p> <select class="inline col-xs-3 nospacing np" ng-model="bikehire[$index].quantity" ng-options="ddl ddl in ddlnumbers" ng-change="addops(bh.type, bikehire[$index].quantity, bh.price)"></select> <p class="col-xs-3 bluetext">{{bh.price | currency}}</p> </div> </div> </div> <div class="nospacing col-xs-6"> <div class="col-xs-12 nospacing np rottnestgreen"> <div ng-repeat="sf in sandf" class="row"> <p class="col-xs-6">{{sf.type}}</p> <select class="inline col-xs-3 nospacing np" ng-model="sf.quantity" ng-options="ddl ddl in ddlnumbers" ng-change="addops(sf.type, sf.quantity, sf.price)"></select> <p class="bluetext col-xs-3">{{sf.price | currency}}</p> </div> </div> </div> <div class="clearfix"></div> </div>
is looking for? https://jsfiddle.net/yczgalgm/2/
wrapping in container:
<div class="row container">
and styling container use flexing way this
.container { display: flex; flex-wrap: wrap; }
the biggest downside though ie support, i dont hope supporting below ie10?
Comments
Post a Comment