Skip to content

Commit

Permalink
Fix primefaces#5892: Fix Splitter resizePanel method
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Feb 5, 2024
1 parent ee907a3 commit d2ac445
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/lib/splitter/Splitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,8 @@ export const Splitter = React.memo(
};

const resizePanel = (index, newPrevPanelSize, newNextPanelSize) => {
let horizontal = props.layout === 'horizontal';

prevPanelIndex.current = index;
gutterRef.current = gutterRefs.current[index];
size.current = horizontal ? DomHandler.getWidth(elementRef.current) : DomHandler.getHeight(elementRef.current);
Expand Down

0 comments on commit d2ac445

Please sign in to comment.