From c844d2c2f4ad2bd9ebd865e9b69f3a5130b94860 Mon Sep 17 00:00:00 2001 From: nazaninreihani Date: Tue, 17 Sep 2019 15:57:46 -0400 Subject: [PATCH] remove unused code --- src/FAB.vue | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/src/FAB.vue b/src/FAB.vue index 8e4ae07..f20bb3f 100644 --- a/src/FAB.vue +++ b/src/FAB.vue @@ -206,7 +206,7 @@ return '64px'; } }, - topListPadding() { + listPadding() { switch (this.iconSize) { case 'small': return '58px'; @@ -221,34 +221,18 @@ return '74px'; } }, - bottomListPadding() { - // mainIconSize + (paddingAmount) / 2 + 20 - switch (this.iconSize) { - case 'small': - return '48px'; - break; - case 'medium': - return '52px'; - break; - case 'large': - return '58px'; - break; - default: - return '52px'; - } - }, listPos() { if (this.position === 'top-right' || this.position === 'top-left') { return { - top: this.allowRevertDirection ? 'unset' : this.topListPadding, - bottom: this.allowRevertDirection ? this.topListPadding : 'unset', + top: this.allowRevertDirection ? 'unset' : this.listPadding, + bottom: this.allowRevertDirection ? this.listPadding : 'unset', position: this.allowRevertDirection ? 'absolute' : 'absolute', width: this.listSize, } } return { - bottom: this.allowRevertDirection ? 'unset' : this.topListPadding, - top: this.allowRevertDirection ? this.topListPadding : 'unset', + bottom: this.allowRevertDirection ? 'unset' : this.listPadding, + top: this.allowRevertDirection ? this.listPadding : 'unset', position: this.allowRevertDirection ? 'absolute' : 'absolute', width: this.listSize }