From 9c1b14ad5a55bb7106b296c5dac645792fa7b46b Mon Sep 17 00:00:00 2001 From: bach Date: Mon, 11 Mar 2024 10:39:33 +0100 Subject: [PATCH] #2325 cartouche header elipse chrome bug fixed --- src/components/contents/TerrainDeVie.vue | 15 +++++++++++---- src/components/layout/CartoucheLayout.vue | 16 +++++++++++----- 2 files changed, 22 insertions(+), 9 deletions(-) diff --git a/src/components/contents/TerrainDeVie.vue b/src/components/contents/TerrainDeVie.vue index 78044bf..0b0ed3a 100644 --- a/src/components/contents/TerrainDeVie.vue +++ b/src/components/contents/TerrainDeVie.vue @@ -34,7 +34,7 @@ export default { infos_opened: false, chevronright_path: mdiChevronRight, chevrondown_path: mdiChevronDown, - mainscrolled: false, + headerreduced: false, } }, computed: { @@ -198,7 +198,14 @@ export default { }) }, onMainScrolled(scrolled){ - this.mainscrolled = scrolled; + console.log('this.$refs', this.$refs); + let cartouche_main = this.$refs.cartouche_layout.$refs.cartouche_main; + console.log('cartouche_main', cartouche_main); + if(scrolled && cartouche_main.scrollHeight > 600){ + this.headerreduced = true; + } else { + this.headerreduced = false; + } } }, components: { @@ -212,11 +219,11 @@ export default {