From 42f8fb2dcabfed96427a6be3033b3fdce961b569 Mon Sep 17 00:00:00 2001 From: Shpuld Shpuldson Date: Wed, 15 Jan 2020 16:37:08 +0200 Subject: [PATCH] rename hidden stuff to virtualHidden, remove log --- src/components/conversation/conversation.js | 11 +++++------ src/components/conversation/conversation.vue | 6 +++--- src/components/status/status.js | 4 ++-- src/components/timeline/timeline.vue | 2 +- 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/components/conversation/conversation.js b/src/components/conversation/conversation.js index ad92a839..15c82de9 100644 --- a/src/components/conversation/conversation.js +++ b/src/components/conversation/conversation.js @@ -46,7 +46,7 @@ const conversation = { 'pinnedStatusIdsObject', 'inProfile', 'profileUserId', - 'hidden' + 'virtualHidden' ], created () { if (this.isPage) { @@ -105,8 +105,8 @@ const conversation = { isExpanded () { return this.expanded || this.isPage }, - hiderStyle () { - return this.hidden ? { height: this.height } : {} + hiddenStyle () { + return this.virtualHidden ? { height: this.virtualHeight } : {} } }, components: { @@ -127,9 +127,8 @@ const conversation = { this.fetchConversation() } }, - hidden (value) { - this.height = `${this.$el.clientHeight}px` - console.log('Element height:', this.height) + virtualHidden (value) { + this.virtualHeight = `${this.$el.clientHeight}px` } }, methods: { diff --git a/src/components/conversation/conversation.vue b/src/components/conversation/conversation.vue index ed06a32b..2fe5fb02 100644 --- a/src/components/conversation/conversation.vue +++ b/src/components/conversation/conversation.vue @@ -1,11 +1,11 @@