frogfather commented on a change in pull request #148: corrects pagination issue
URL: https://github.com/apache/brooklyn-ui/pull/148#discussion_r352645780
##########
File path:
ui-modules/blueprint-composer/app/components/catalog-selector/catalog-selector.directive.js
##########
@@ -350,9 +349,10 @@ export function catalogSelectorDirective() {
// no main, or hidden, or items per page fixed
return;
}
- let header =
angular.element(main[0].querySelector(".catalog-palette-header"));
- let footer =
angular.element(main[0].querySelector(".catalog-palette-footer"));
- rowsPerPage = Math.max(MIN_ROWS_PER_PAGE,
Math.floor((main[0].offsetHeight - header[0].offsetHeight -
footer[0].offsetHeight - 16) / ($scope.state.viewMode.rowHeightPx || 96)));
+ let palette =
angular.element(document.getElementsByClassName("palette-and-or-toolbar"));
Review comment:
All points addressed.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services