Skip to content
Snippets Groups Projects
Commit a0493d4a authored by Paul Kaplan's avatar Paul Kaplan
Browse files

Make lists have a minimum width

parent de6637e4
Branches
No related tags found
No related merge requests found
......@@ -123,7 +123,7 @@ class ListMonitor extends React.Component {
const dx = newPosition.x - this.initialPosition.x;
const dy = newPosition.y - this.initialPosition.y;
this.setState({
width: Math.min(this.initialWidth + dx, 480),
width: Math.max(Math.min(this.initialWidth + dx, 480), 80),
height: Math.max(Math.min(this.initialHeight + dy, 360), 60)
});
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment