collapse icon indicating copy to clipboard operation
collapse copied to clipboard

How to scroll panel into view when it is shown on click?

Open gnoyixiang opened this issue 7 years ago • 2 comments

Hello! I would like the panel to be scrolled into view (if it is not in view) when the user clicks it. I cannot get the DOM element by applying ref to the Collapse or Panel component. Kindly advise. Thanks!

gnoyixiang avatar Dec 07 '18 04:12 gnoyixiang

any luck with this? 😄

marko1943 avatar Dec 11 '18 16:12 marko1943

Nope, havent tried out anything yet. But I think the way to do it is apply ref to the children node of the Panel. That should work and should be the way it is.

gnoyixiang avatar Dec 12 '18 16:12 gnoyixiang