Coder Social home page Coder Social logo

not responsive about md-data-table HOT 6 CLOSED

daniel-nagy avatar daniel-nagy commented on July 30, 2024
not responsive

from md-data-table.

Comments (6)

daniel-nagy avatar daniel-nagy commented on July 30, 2024

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

from md-data-table.

razzbee avatar razzbee commented on July 30, 2024

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

from md-data-table.

daniel-nagy avatar daniel-nagy commented on July 30, 2024

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.

from md-data-table.

razzbee avatar razzbee commented on July 30, 2024

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

from md-data-table.

razzbee avatar razzbee commented on July 30, 2024

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

from md-data-table.

razzbee avatar razzbee commented on July 30, 2024

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.

from md-data-table.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.