Code Monkey home page Code Monkey logo

nice-react-layout's People

Contributors

dependabot[bot] avatar ekros avatar jaygiri avatar mohbadr 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  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

nice-react-layout's Issues

Weird separator behaviour after dragging panels

If you have, let's say, a four-panel horizontal layout with a separator in the middle and you drag one panel from the left side to the right side or viceversa, the separator starts to behave weirdly when dragged. After some research, I narrowed it down to the internal representation of the layout (layout and layoutOrdering in the Layout state). It seems to happen when the original layoutOrdering is modified. This ordering modifies the order attribute of the flex items.

Cannot pass null as children

Given the following code:

<HorizontalLayout>
  <Panel></Panel>
  {foo ? <Panel></Panel> : null}
</HorizontalLayout>

It throws an error: TypeError: Cannot read property 'id' of null

It should ignore nullish children so this kind of logic can be used.

Components rendering Panels have their properties ignored

If I try to compose a layout from separate functional components then some features (e.g. mockup colors and fixedHeights) are ignored.

e.g. The following will split the space evenly between both panels and not color the 1st panel.

const Header = (height, message) => (
  <Panel fixed fixedHeight={150}>{message}</Panel>
);

return (
  <View>
    <VerticalLayout mockup>
      <Header message={'Hello'} />
      <Panel>World</Panel>
    </VerticalLayout>
  </View>
);

Logging on every separator interaction

First of all, thanks for a promising library which is both easy to use and yields good results.

It seems that when interaction/moving a separator it's logging in the console on every interaction. Is there any plan to remove logging on build?

Thanks

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.