Content within the document has already been enlarged by an enlarged element, as indicated by the scroll bar. To view the entire enlarged element, all you need to do is scroll. For example:
elmnt.scrollIntoView(false);
The main issue (especially when using React) is that the process should be executed after changing state and rendering the enlarged element.
A possible solution would be to use a setTimeout
function called from the setState
callback. This is a common method used to ensure that the function is called after updating the state/view. You can find examples of this on Stack Overflow.