Giter Site home page Giter Site logo

Comments (5)

WDShannon avatar WDShannon commented on July 18, 2024

Also, you have a typo on line 25 of that codepen that stops the table from rendering correctly.

<md-content laout="column" flex ng-controller="nutritionController"> <md-card>

You forgot the 'y' in layout.

from fixed-table-header.

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

Yes flexbox will work. It's just a matter of having your layout correct to allow the container to grow and shrink.

Maybe when I fix the codepen I'll demonstrate how you can make it work with flexbox.

from fixed-table-header.

WDShannon avatar WDShannon commented on July 18, 2024

This pen here demo's the issue I am having. Probably more to do with my layout, but I'm still learning the flexbox. What can I do to get this working correctly? It seems to work right in chrome but in IE i get the second scroll bar.

CODEPEN

from fixed-table-header.

oglematt avatar oglematt commented on July 18, 2024

I'm having a similar issue that is well illustrated in the codepen from @WDShannon. It's possible it's related to my layout, but your md-data-table object works perfectly the fixed header. I should also note that interacting with the table (selecting rows) rows seems to "fix" any height / alignment issues.

from fixed-table-header.

jraadt avatar jraadt commented on July 18, 2024

I had a situation where I couldn't give a fixed height either. I reworked fixed-table-header to use Angular Material's $mdSticky service, taking cues from md-subheader. It seems to work great now when it's inside an md-content tag or a flex container. See pull request #15.

from fixed-table-header.

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.