Chousse Posted July 12, 2023 Share Posted July 12, 2023 Hi, I've developped a 4K app (on desktop touch windows) BUT the screen is finally an HD so I don't want to rebuild the entire app in HD. So I basiclly apply a scale(0.5) on the main container (same on the body). it work perfectly except for the scrollsmoother, it keep the 4K height. How I can fix that ? thanks Link to comment Share on other sites More sharing options...
GreenSock Posted July 12, 2023 Share Posted July 12, 2023 It's tough to troubleshoot without a minimal demo, but when you just apply a transform (scale) to an element, that doesn't change anything about the actual layout geometry, so it'd make sense that the overall size of the container would remain the same. My guess is that you could set overflow: hidden on the content <div>, and explicitly set the height/width to be half of their normal width/height. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now