Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

not responsive #40

Closed
razzbee opened this issue Jul 7, 2015 · 6 comments
Closed

not responsive #40

razzbee opened this issue Jul 7, 2015 · 6 comments

Comments

@razzbee
Copy link

razzbee commented Jul 7, 2015

I tried using it in my project , it works fine, but its not responsive, I dont know if I am missing out something??

@daniel-nagy
Copy link
Owner

What exactly do you mean by not responsive? Is there something specific you see in the demo that you cannot replicate in your project?

@razzbee
Copy link
Author

razzbee commented Jul 7, 2015

The table doesnt resize in mobile view,the demo works fine, I dont know about mine.

@daniel-nagy
Copy link
Owner

hmm... The table is going to have a natural width based on the largest cell in each column. The table will not shrink beyond this natural width and will scroll horizontally on smaller screens.

If this doesn't describe what your'e experiencing, it may be a problem with the general layout of your application. If your not familiar with how flexbox works it can be tricky to achieve your desired layout.

@razzbee
Copy link
Author

razzbee commented Jul 7, 2015

Thank You very much , since I am pretty new to angular and material angular ,I guess that might be the problem. I will check my layout again and give you feedback

@razzbee
Copy link
Author

razzbee commented Jul 8, 2015

I think the the problem is not from my layout but from the module. This is how the error can be reproduced. If you wrap your app in a div with layout row or body with layout = 'row' which is needed by md-sidenav then md-data-table's becomes static

@razzbee
Copy link
Author

razzbee commented Jul 8, 2015

I have been able to fix it by adding conditional layouts :

.....

I lock the sidenav at layout-gt-md , so I have to set it to row to align the sidenav and the main content side by side , else the default layout should be column.
Thank You so much.

@razzbee razzbee closed this as completed Jul 8, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants