Skip to content

Commit

Permalink
Update PanelGroup.js
Browse files Browse the repository at this point in the history
Error log message correction
  • Loading branch information
nicolas-van authored Mar 14, 2019
1 parent 7fe325c commit 585fff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PanelGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ class PanelGroup extends React.Component {
? boundingRect.height
: boundingRect.width) -
this.props.spacing * (this.props.children.length - 1);
if (masterSize != boundingSize) {
if (Math.abs(boundingSize, masterSize) <= 0.01) {
console.log(panels[0], panels[1]);
console.log("ERROR! SIZES DON'T MATCH!: ", masterSize, boundingSize);
// 2) Rectify the situation by adding all the unacounted for space to the first panel
Expand Down

0 comments on commit 585fff5

Please sign in to comment.