Skip to content

Commit

Permalink
feat(redeploy): Republish package
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Ng committed Mar 12, 2018
1 parent 0a717a5 commit c460d5b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ class DynamicOverflow extends React.Component {
* Then, the containerNode and tabNode are measured to calculate how many
* elements we can display.
*
* If elements need to be hidden, everything is rerendered
*
* If elements need to be hidden, everything is rerendered.
*/
this.calculateSize();
}
Expand All @@ -40,7 +39,7 @@ class DynamicOverflow extends React.Component {

let numberOfVisibleElements = Infinity;
if (currentChildrenCount > maximumChildrenAllowed) {
// always show at least one element
// by default, one element is always shown
numberOfVisibleElements = Math.max(maximumChildrenAllowed, 1);
}

Expand Down

0 comments on commit c460d5b

Please sign in to comment.