material icon indicating copy to clipboard operation
material copied to clipboard

mdFabSpeedDial - Missing the "md-fab-bottom-right" to put it in the bottom right corner

Open carab opened this issue 11 years ago • 11 comments

Hello everyone,

Using a simple md-fab button, we are able to place it in the bottom right corner by using "md-fab-bottom-right" class.

It would be nice if it was also possible for the mdFabSpeedDial component without writing custom CSS.

Thank you, Carab.

carab avatar Jun 11 '15 09:06 carab

:+1:

EladBezalel avatar Jun 11 '15 15:06 EladBezalel

It needs to support all of the position classes.

ghost avatar Jun 11 '15 17:06 ghost

does anyone have a good workaround for this in the mean time?

ajd394 avatar Jul 06 '15 15:07 ajd394

You should be able to use absolute positioning to put it anywhere on the page that you want. Something like this should work:

<style>
#my-speed-dial {
  position: absolute;
  bottom: 20px;
  right: 20px;
}
</style>

<md-fab-speed-dial id="my-speed-dial" class="md-fling">
  ...
</md-fab-speed-dial>

topherfangio avatar Jul 06 '15 15:07 topherfangio

you were right! this link describes it in detail https://groups.google.com/d/msg/ngmaterial/j-Jovmag2NA/aSce1Sp-CAkJ

ajd394 avatar Jul 06 '15 19:07 ajd394

Should be straight forward, is there a reason why this isn't done yet? @topherfangio

md-fab-speed-dial.md-fab-bottom-right {
    top: auto;
    right: 20px;
    bottom: 20px;
    left: auto;
    position: absolute;
}

md-fab-speed-dial.md-fab-bottom-left {
    top: auto;
    right: auto;
    bottom: 20px;
    left: 20px;
    position: absolute;
}

ghost avatar Jul 07 '15 23:07 ghost

@robertbaker Honestly, just been a bit busy as one of my contracts is coming to a close :-)

Also wanted to check if there were any top positions I needed to support, and I haven't had a chance to look. Will do so tonight.

topherfangio avatar Jul 09 '15 02:07 topherfangio

I have a PR (#3693) to fix this that should be merged soon.

topherfangio avatar Aug 06 '15 15:08 topherfangio

Glad to hear that ;)

carab avatar Aug 06 '15 15:08 carab

+1

listepo avatar Aug 23 '15 10:08 listepo

@listepo This is now available in master.

topherfangio avatar Aug 23 '15 14:08 topherfangio