diff --git a/components/nav/TopLevelMenu.vue b/components/nav/TopLevelMenu.vue index 22b270449a..8f77a34809 100644 --- a/components/nav/TopLevelMenu.vue +++ b/components/nav/TopLevelMenu.vue @@ -143,12 +143,13 @@ export default { methods: { // Cluster list number of items shown is configurbale via user preference - setClusterListHeight(a) { + setClusterListHeight(maxToShow) { const el = this.$refs.clusterList; + const max = Math.min(maxToShow, this.clusters.length); if (el) { const $el = $(el); - const h = 34 * a; + const h = 34 * max; $el.css('height', `${ h }px`); } @@ -213,7 +214,7 @@ export default { /> -