Skip to content

Commit

Permalink
Change example.git for one with faster framerate
Browse files Browse the repository at this point in the history
  • Loading branch information
mlejva committed Mar 10, 2021
1 parent 5f19e18 commit 92557c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified example.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function Split({
/////////

// This method is called on the initial render.
// It iterates through the all children and make them equal wide.
// It iterates through the all children sets their initial sizes.
const setInitialSizes = React.useCallback((
direction: SplitDirection,
children: HTMLElement[],
Expand All @@ -154,7 +154,7 @@ function Split({
const parent = children[0].parentNode;
if (!parent) throw new Error(`Cannot set initial sizes - parent is undefined.`);
const parentSize = getInnerSize(direction, parent as HTMLElement);
if (parentSize === undefined) throw new Error(`Cannot set initial sizes - parent has undefined or zero size: ${parentSize}.`);
if (parentSize === undefined) throw new Error(`Cannot set initial sizes - parent has undefined size.`);

children.forEach((c, idx) => {
const isFirst = idx === 0;
Expand Down

0 comments on commit 92557c5

Please sign in to comment.