diff options
author | Jose Vargas <jvargas@gitlab.com> | 2018-09-25 16:43:43 -0500 |
---|---|---|
committer | Jose Vargas <jvargas@gitlab.com> | 2018-09-25 18:15:30 -0500 |
commit | 6ff8146dc23bd1c008a347ab7c4bfbfd8c2486a9 (patch) | |
tree | e19792355e1adb932308835947160e23f48df43b /app | |
parent | efedd968fb35a1113414885b48798c2723c7578d (diff) | |
download | gitlab-ce-6ff8146dc23bd1c008a347ab7c4bfbfd8c2486a9.tar.gz |
Change forceRedraw key formatjivl-fix-monitoring-dashboard-resizing-navbar
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/monitoring/components/dashboard.vue | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/monitoring/components/dashboard.vue b/app/assets/javascripts/monitoring/components/dashboard.vue index 228eff006f7..67338aa96c3 100644 --- a/app/assets/javascripts/monitoring/components/dashboard.vue +++ b/app/assets/javascripts/monitoring/components/dashboard.vue @@ -98,12 +98,12 @@ export default { state: 'gettingStarted', showEmptyState: true, hoverData: {}, - updateDashboardKeyNumber: 0, + elWidth: 0, }; }, computed: { forceRedraw() { - return `dashboard-key-${this.updateDashboardKeyNumber}`; + return this.elWidth; }, }, created() { @@ -165,7 +165,7 @@ export default { }); }, resize() { - this.updateDashboardKeyNumber += 1; + this.elWidth = this.$el.clientWidth; }, hoverChanged(data) { this.hoverData = data; |