Repository: qpid-dispatch Updated Branches: refs/heads/master 21af29f05 -> 0682ec695
DISPATCH-1030 Ensure grid is resized properly on console Entities page Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/0682ec69 Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/0682ec69 Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/0682ec69 Branch: refs/heads/master Commit: 0682ec69552a897bf890d2466ade50adabb737d1 Parents: 21af29f Author: Ernest Allen <eal...@redhat.com> Authored: Wed Jun 13 09:47:36 2018 -0400 Committer: Ernest Allen <eal...@redhat.com> Committed: Wed Jun 13 09:47:36 2018 -0400 ---------------------------------------------------------------------- console/stand-alone/plugin/html/qdrList.html | 2 +- console/stand-alone/plugin/js/qdrList.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/0682ec69/console/stand-alone/plugin/html/qdrList.html ---------------------------------------------------------------------- diff --git a/console/stand-alone/plugin/html/qdrList.html b/console/stand-alone/plugin/html/qdrList.html index c4da99e..64aa091 100644 --- a/console/stand-alone/plugin/html/qdrList.html +++ b/console/stand-alone/plugin/html/qdrList.html @@ -80,7 +80,7 @@ span.fancytree-icon { <div ng-show="currentMode.id === 'attributes'" class="selectedItems"> <div ng-show="selectedRecordName === selectedEntity" class="no-content">There are no {{selectedEntity | safePlural}}</div> <div id='details-grid' ng-hide="selectedRecordName === selectedEntity" ui-grid="details" ui-grid-resize-columns ui-grid-save-state - ng-style="getTableHeight()"></div> + ui-grid-auto-resize ng-style="getTableHeight()"></div> </div> <div ng-show="currentMode.id === 'delete'"> <div class="delete" ng-show="selectedRecordName !== selectedEntity"> http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/0682ec69/console/stand-alone/plugin/js/qdrList.js ---------------------------------------------------------------------- diff --git a/console/stand-alone/plugin/js/qdrList.js b/console/stand-alone/plugin/js/qdrList.js index 849c1c3..db3a43f 100644 --- a/console/stand-alone/plugin/js/qdrList.js +++ b/console/stand-alone/plugin/js/qdrList.js @@ -382,6 +382,8 @@ var QDR = (function(QDR) { let h = $scope.detailFields.length * 30 + 46; $('.ui-grid-viewport').height(h); $scope.details.excessRows = $scope.detailFields.length; + $scope.gridApi.grid.handleWindowResize(); + $scope.gridApi.core.refresh(); }; $(window).resize(resizer); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org