Skip to content

Commit

Permalink
Prevent actions list to affect component size #1
Browse files Browse the repository at this point in the history
  • Loading branch information
sambaptista committed Jul 7, 2018
1 parent c061234 commit 3ee6db8
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
25 changes: 24 additions & 1 deletion projects/fab-speed-dial/src/lib/fab-speed-dial.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ eco-fab-speed-dial {
display: -webkit-box;
display: -webkit-flex;
display: flex;
height: auto;
position:absolute;
height:0;
width:0
}
}

Expand Down Expand Up @@ -95,6 +97,12 @@ eco-fab-speed-dial {
}

&.eco-down {

eco-fab-speed-dial-actions {
bottom:2px;
left:7px;
}

.eco-fab-speed-dial-container {
@include eco-fab-speed-dial-container(vertical, column);

Expand All @@ -109,6 +117,11 @@ eco-fab-speed-dial {
}

&.eco-up {
eco-fab-speed-dial-actions {
top:2px;
left:7px;
}

.eco-fab-speed-dial-container {
@include eco-fab-speed-dial-container(vertical, column);

Expand All @@ -123,6 +136,11 @@ eco-fab-speed-dial {
}

&.eco-left {
eco-fab-speed-dial-actions {
top:7px;
left:2px;
}

.eco-fab-speed-dial-container {
@include eco-fab-speed-dial-container(horizontal, row);

Expand All @@ -137,6 +155,11 @@ eco-fab-speed-dial {
}

&.eco-right {
eco-fab-speed-dial-actions {
top:7px;
right:2px;
}

.eco-fab-speed-dial-container {
@include eco-fab-speed-dial-container(horizontal, row);

Expand Down
1 change: 0 additions & 1 deletion projects/fab-speed-dial/src/lib/fab-speed-dial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ export class EcoFabSpeedDialActionsComponent implements AfterContentInit {
const dir = this._parent.direction;
const translateFn = (dir === 'up' || dir === 'down') ? 'translateY' : 'translateX';
const sign = (dir === 'down' || dir === 'right') ? '-' : '';

return translateFn + '(' + sign + value + ')';
}

Expand Down

0 comments on commit 3ee6db8

Please sign in to comment.