Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

mdGridList: unexpected tile ordering #2225

Closed
VilemP opened this issue Apr 9, 2015 · 7 comments
Closed

mdGridList: unexpected tile ordering #2225

VilemP opened this issue Apr 9, 2015 · 7 comments
Assignees
Milestone

Comments

@VilemP
Copy link

VilemP commented Apr 9, 2015

Hi,

we have a case where we would like to add tiles into the grid in two ways:
a) the first tile is always fixed and basically plays the role of "add new" button for the list items
b) any number of other tiles added via ng-repeat

Unfortunately it is not possible to achieve that as tiles added via ng-repeat have the scope.$parent.$index defined (unlike the others) and as a consequence, they are always put in front of the other tiles.

See this plunkr: http://plnkr.co/edit/uFFmoZMaWallf8M3PHRi?p=preview

I would suggest to allow an "order" attribute for a tile (similar to flexbox) to be able to specify desired order of the tile in the list.

BTW, we have run into similar issue with tabs (a mixture of fixed tabs + tabs created via ng-repeat)

@VilemP
Copy link
Author

VilemP commented Apr 9, 2015

Hi again... actually, the tab behaviour is different (still problematic). I have created another issue and plunkr for it #2226
Sorry for mixing the two together.

@ThomasBurleson
Copy link
Contributor

mdGridList has been improved for 0.9; which closed many issues.
Please update your Plunkr with latest from #master and retest:

  • //rawgit.com/angular/bower-material/master/angular-material.css
  • //rawgit.com/angular/bower-material/master/angular-material.js

@ThomasBurleson ThomasBurleson added this to the 0.9.0 milestone Apr 9, 2015
@ThomasBurleson ThomasBurleson self-assigned this Apr 9, 2015
@VilemP
Copy link
Author

VilemP commented Apr 9, 2015

Hi, I have updated the plunkr, yet the order still seems to be wrong...

@ThomasBurleson
Copy link
Contributor

@shyndman - FYI

@sarunast
Copy link

I have the same problem as well.

@tkrotoff
Copy link
Contributor

+1

@shyndman
Copy link
Contributor

This one is kind of tricky. I have to think about it for a bit.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants