From a5ac4b726e3c94561dc430aaffbba21f9a8b4723 Mon Sep 17 00:00:00 2001 From: Book Pauk Date: Tue, 5 Feb 2019 17:22:31 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A2=D0=B5=D0=BE=D1=80=D0=B5=D1=82=D0=B8?= =?UTF-8?q?=D1=87=D0=B5=D1=81=D0=BA=D0=BE=D0=B5=20=D1=83=D0=BB=D1=83=D1=87?= =?UTF-8?q?=D1=88=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF=D1=80=D0=BE=D0=B8=D0=B7?= =?UTF-8?q?=D0=B2=D0=BE=D0=B4=D0=B8=D1=82=D0=B5=D0=BB=D1=8C=D0=BD=D0=BE?= =?UTF-8?q?=D1=81=D1=82=D0=B8=20=D0=BF=D1=80=D0=B8=20=D0=BB=D0=B8=D1=81?= =?UTF-8?q?=D1=82=D0=B0=D0=BD=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/components/Reader/TextPage/TextPage.vue | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/client/components/Reader/TextPage/TextPage.vue b/client/components/Reader/TextPage/TextPage.vue index 6536d03f..4cd513cb 100644 --- a/client/components/Reader/TextPage/TextPage.vue +++ b/client/components/Reader/TextPage/TextPage.vue @@ -4,12 +4,12 @@
-
+
-
+
@@ -50,6 +50,9 @@ export default @Component({ settings: function() { this.debouncedLoadSettings(); }, + toggleLayout: function() { + this.updateLayout(); + }, }, }) class TextPage extends Vue { @@ -315,6 +318,7 @@ class TextPage extends Vue { this.$refs.main.focus(); this.toggleLayout = false; + this.updateLayout(); this.book = null; this.meta = null; this.fb2 = null; @@ -371,6 +375,16 @@ class TextPage extends Vue { } } + updateLayout() { + if (this.toggleLayout) { + this.$refs.scrollBox1.style.visibility = 'visible'; + this.$refs.scrollBox2.style.visibility = 'hidden'; + } else { + this.$refs.scrollBox1.style.visibility = 'hidden'; + this.$refs.scrollBox2.style.visibility = 'visible'; + } + } + setBackground() { this.background = `
`;