Coder Social home page Coder Social logo

react-flexbox-layout's People

Contributors

bywo avatar dbellizzi avatar gianu avatar holden-caulfield avatar kelwill avatar leoasis avatar match-shanspencer avatar mikaoelitiana avatar peterkhayes avatar rafaelchiti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-flexbox-layout's Issues

Does lodash really need to be a peer dependency?

I'm using react-flexbox-layout on a project on which I'm not using lodash.
NPM is giving me the usual warning about peer dependencies.

I wonder if lodash shouldn't just be a project dependency only and get removed of peer dependencies on package.json

Make the update engine listen to resize based on registrations

We could avoid explicitly listening to window's resize event and just automatically start listening/stop listening depending on the amount of registered components with the engine.

The idea would be that when there is at least 1 component, we listen to the resize event, and when we have no components (because they deregistered), we stop listening.

We can even check if we're in a DOM to support server side rendering, and all that can be handled transparently inside the engine module, without explicitly calling it, or having a side effect when requiring it.

What do you think? Any drawbacks you see?

Support for server side rendering

Hi!

In our project we've been using this library and have the requirement for server side rendering. We've been thinking about approaches to not depend on document but at the same time make React not bail because of different markup being rendered in the server and in the client.

So with @rafaelchiti we've thought about the strategy to move the vendor differences that may cause different markup to static css classes that handle the vendor differences in the css stylesheet.

What do you think about the approach? Is there any concern you see in advance? Would you be willing to accept a PR with an attempt on that?

Any reason for not being compatible with React 15.1.x?

With latest react 15.1.0 available, had to force react on my project to stick to 15.0.1 because of the fixed dependency to 15.0.x on react-flexbox layout.

Wondering if there was any reason for react-flexbox-layout not to support the latest.

Forked the repo and gave it a quick try moving versions to ^15.0.1: master...holden-caulfield:master

Tests seems to run well but not sure if that is enough. Happy to create a PR for that change, but thought about asking first if there was a bigger reason not to do this.

Thanks!

Warn the user when setting styles through class name on things that should not be changed

Would be nice to have the same warnings we have when setting a style with inline styles, for those things that can not be overwritten.
We need this for class names since we are using css modules.
This way we can send a className to HLayout or any of the other components for changing the things that are safe to change but warn the user for those things that are not safe.
We could use computedLayout in dev for achieving this.

Flex item and min-width 0

I've found this issue a few times already where having a flex item that has inside a long word without spaces will cause the text to overflow, explanation:
https://groups.google.com/forum/#!topic/mozilla.dev.platform/0ZmJwayNsCY

Issue: https://jsfiddle.net/cLxdjuLn/

Wondering if you @byronmwong know something about this? Im not sure I fully understand this but ended up putting already 3 min-widths in my code for fixing, wondering if that makes sense or if it should be part of the library? maybe you are more familiar already with this issue.

Thanks!

flex-basis on flex shorthand declaration

Hey!, I saw there is a closed ticket where we were doing flex: 1 1 0 and that was breaking the layout completely in IE11 since the flex basis part was unintless and caused a but in IE10 + 11.
I got a question, based on this ticket https://github.com/philipwalton/flexbugs#4-flex-shorthand-declarations-with-unitless-flex-basis-values-are-ignored the suggestion is to use 0%, wondering why we ended up using 'auto' to be honest auto makes sense but I bumped into an error in my layout in IE11 that gets fixed by doing flex: 1 1 0%, I need to do more research but wanted to get the conversation going to understand the rational when closing the original bug.

Thanks!
Rafa.

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.