Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
nazaninreihani committed Sep 17, 2019
1 parent f15cdac commit c844d2c
Showing 1 changed file with 5 additions and 21 deletions.
26 changes: 5 additions & 21 deletions src/FAB.vue
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@
return '64px';
}
},
topListPadding() {
listPadding() {
switch (this.iconSize) {
case 'small':
return '58px';
Expand All @@ -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
}
Expand Down

0 comments on commit c844d2c

Please sign in to comment.