I'm building a React app using the following tech stack:
The app works perfectly in my local development environment. However, when I deploy it to Google Apps Script (GAS) as a web app, the page content starts resizing constantly across the site. This behavior causes the scrollbars to appear and disappear repeatedly, as shown in this short clip:
I'm looking for any insights, solutions, or workarounds to prevent this constant resizing behavior when deployed to GAS. Thanks in advance for your help!
So I finally figured it out, I think but basically it came down to a styling problem in my code.
I'm using react and I had done the following in my layout.tsx
return (
<SidebarProvider>
{/* menu sidebar */}
<AppSidebar />
<div className="flex flex-col flex-1">
{/* header */}
<AppHeader />
{/* main content */}
<main className="flex-1">{children}</main>
{/* footer */}
<Footer />
</div>
</SidebarProvider>`
For whatever reason, I'm not a css expert, but it looks like the flex-1
in the <main>
was conflicting with the parent div. All is to say that the parent div was already manaing the container size and after removing className="flex-1"
from <main>
all was working and no more recurring resizing.