Skip to content

Commit

Permalink
Fix height calculation for listcomponent
Browse files Browse the repository at this point in the history
  • Loading branch information
paronne committed Dec 30, 2019
1 parent 8fd1085 commit abed41e
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions customrenderedcomponents/listcomponent/listcomponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,18 +195,7 @@ angular.module('customrenderedcomponentsListcomponent',['servoy'])
} else {
layoutStyle.position = "relative";
if ($scope.model.responsiveDynamicHeight) {
var h = 0;
$element.find("div.list-item").each(function() {
h += $(this).height();
if (h > $scope.model.responsiveHeight) {
return false;
}
});
if ($scope.model.responsiveHeight === 0) {
$element.css("height", "100%");
layoutStyle.height = 100 + "%";
} else {
layoutStyle.height = h + "px";
if ($scope.model.responsiveHeight > 0) {
layoutStyle.maxHeight = $scope.model.responsiveHeight + "px";
}
} else {
Expand Down

0 comments on commit abed41e

Please sign in to comment.