]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Fix CRUSH map viewer VirtualScroll 38607/head
author胡玮文 <huww98@outlook.com>
Sun, 6 Dec 2020 08:06:32 +0000 (16:06 +0800)
committerAvan Thakkar <athakkar@redhat.com>
Wed, 16 Dec 2020 09:20:28 +0000 (14:50 +0530)
commitb60177975d2bbdee15adbbf9849d0e1116aec38a
tree00343b664959d7c9f6aee6bb1b4a5274ace82fab
parente8cafbfec3ea15f188d5c601d4b8abafcf257faa
mgr/dashboard: Fix CRUSH map viewer VirtualScroll

As stated in https://angular2-tree.readme.io/docs/large-trees:
To use this (virtual scroll) option, one must supply the height of the
container, and the height of each node in the tree.

Current CRUSH map viewer can only show 13 out of 19 OSDs in our cluster,
and I can only get the rest of OSDs shown by fold some subtree, which is
very confusing. This PR follows the doc of "@circlon/angular-tree-component",
and set the suitable height.

Fixes: https://tracker.ceph.com/issues/45873
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
(cherry picked from commit be141cdcdbf4f052198bb2701f61f4c5ad75be75)

 Conflicts:
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/crushmap/crushmap.component.scss
   -Adopted the changes of the master branch.
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/crushmap/crushmap.component.html
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/crushmap/crushmap.component.scss
src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/crushmap/crushmap.component.ts