Skip to content

Commit

Permalink
Merge pull request #271 from smorton-planview/PreventPDFZoomFromScrol…
Browse files Browse the repository at this point in the history
…lingOffScreen

Ensure PDFControls do not scroll off the screen when zooming
  • Loading branch information
cyntler authored Jul 10, 2024
2 parents 07e28fb + ded8116 commit bd5f925
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/components/ProxyRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,7 @@ export const ProxyRenderer: FC = () => {
);

return (
<Container
id="proxy-renderer"
data-testid="proxy-renderer"
ref={containerRef}
>
<div id="proxy-renderer" data-testid="proxy-renderer" ref={containerRef}>
<Contents
{...{
state,
Expand All @@ -134,15 +130,10 @@ export const ProxyRenderer: FC = () => {
t,
}}
/>
</Container>
</div>
);
};

const Container = styled.div`
display: flex;
flex: 1;
`;

const LoadingContainer = styled.div`
display: flex;
flex: 1;
Expand Down

0 comments on commit bd5f925

Please sign in to comment.