Skip to content

Commit

Permalink
PGA-254 - Updating logic so when table is expanded, height is set to …
Browse files Browse the repository at this point in the history
…auto to adjust for content changes
  • Loading branch information
shannonhochkins committed Apr 9, 2024
1 parent f831334 commit 3721fad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/molecules/Table.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@ class Table extends Component {
easing: 'ease-in-out'
}).onfinish = () => {
// always set the height after finish to the last value on the animatable properties
ref.style.height = toFrom[1].height;
// when expanded, we should set the height to auto to automatically account
// for dynamic changes to the content when resizing or changing the content based on state
ref.style.height = shouldExpand ? 'auto' : toFrom[1].height;
};
};

Expand Down

0 comments on commit 3721fad

Please sign in to comment.