Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overflow causes checkboxes to have 1 width #29

Open
nddipiazza opened this issue Feb 12, 2020 · 0 comments · May be fixed by #30
Open

Overflow causes checkboxes to have 1 width #29

nddipiazza opened this issue Feb 12, 2020 · 0 comments · May be fixed by #30

Comments

@nddipiazza
Copy link

nddipiazza commented Feb 12, 2020

When text overflows in the tree, the checkbox gets misshapen. See this example:

import React from 'react';
import TreeView from 'deni-react-treeview';

class Example extends React.Component{

  render() {
    return (
      <TreeView items={ fruitsAndVegetables } showCheckbox={true} />
    );
    
  }

}

export default Example;

let fruitsAndVegetables = [
  {
    id: 100,
    text: 'Fruits',
    children: [
      {
        id: 101,
        text: 'Orange',
        isLeaf: true
      },
      {
        id: 102,
        text: 'Banana',
        isLeaf: true
      }
    ]
  },
  {
    id: 200,
    text: 'Vegetables',
    children: [
      {
        id: 201,
        text: 'Carrot has a really long title. seriously? Wow. Woah that\'s crazy bro. You got such a long name.',
        isLeaf: true
      },
      {
        id: 202,
        text: 'Tomato',
        isLeaf: true
      }
    ]
  }
];

Causes a 1-width checkbox image:

image

@nddipiazza nddipiazza linked a pull request Feb 12, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant