2,847 questions
-1
votes
2
answers
123
views
How to get 100 small viewport height in Javascript? [closed]
I have an asset that has to be statically sized based on viewport height. The problem is that for some mobile browsers when the navigation bar hides, the asset changes size, because the height of the ...
0
votes
0
answers
129
views
Set a Viewport to have a margin (or padding) on the right-hand side?
I have a FileMaker file, which uses a web-viewer as a Rich Text Editor. I also have a 'Slide Control' which slides a layout object in from one side. When this happens, I run a Function in the RTE ...
-1
votes
1
answer
99
views
What would be the best approach to build a CSS grid with 1500 divs that fill in te best way the viewport?
I have 1500 divs (nothing should be displayed into them) and I would like based on the size of the viewport size to build a grid that best fill in the viewport.
Divs should fill the rows up to the end ...
11
votes
0
answers
4k
views
iOS 26 Safari visualViewport change after dismissing keyboard [closed]
I have been struggling with an issue in Safari from iOS 26. Whenever I dismiss the keyboard and scroll a little bit, the viewports's top is 24px above the upper visible screen edge.
I found a similar ...
56
votes
10
answers
43k
views
iOS 26 Safari - Web layouts are breaking due to fixed/sticky position elements getting shifted vertically
In Safari on iOS 26, when the page is scrolled down and the address bar shrinks at the bottom, the viewport appears to get displaced vertically, which in turn shifts the position of elements with ...
1
vote
0
answers
54
views
Issues while exporting image from a rendered scene (Three.js)
I wrote a function (a bit of vibe coding too) that exports the users current canvas as an image.
Reference Images
User’s View:
Please ignore the toolbar in the user’s view image that is not a part of ...
-2
votes
1
answer
36
views
why don’t 100vh and 100vw fill the screen properly with “display: table-cell”? [duplicate]
i was trying to create a <noscript> that would fill the entire screen with the text centered on the middle, and i am using display: table-cell; to do so.
i set the height and width to 100vh and ...
0
votes
1
answer
120
views
Framer Motion whileInView animation not triggering inside a div with overflow-hidden
I'm using Framer Motion with React and trying to animate an <h1> element sliding into view from the left, inside a div that has overflow-hidden. My goal is to make the text look like it's "...
1
vote
1
answer
247
views
How to trigger Magic UI (Framer Motion-based) animations only when entering the viewport, not when the mobile URL bar shows/hides?
I'm working with a React/Next.js 15 project using Framer Motion to animate text components. I've created a custom <TextAnimate /> component that mimics the behavior of Magic UI's text animations ...
2
votes
0
answers
84
views
Convert Unity XrCpuImage Coordinates to Viewport Coordinates for Android AR Foundation
I am trying to detect paper edges with a camera using my opencv c++ plugin in unity. The plugin I wrote detects the corner pixel coordinates seamlessly, I tested it all over, so that should not be the ...
0
votes
0
answers
66
views
Tracking viewport height when keyboard is open on iOS
I have an app on 100dvh, fixed header at the top, fixed footer at the bottom, in the middle everything that is left with overflow-auto. The problem on iOS is that when I put the cursor on the input, ...
1
vote
1
answer
194
views
How to set viewport width for print media?
I've been doing some testing with print CSS, and getting wildly different results in different browsers. Considering the example below, Safari prints "This viewport is more than 1200px" ...
0
votes
0
answers
40
views
NextJS viewport doesn't work with `output: 'export'`
The goal is to avoid zooming and pinching. I'm using NextJS 14.2.5. I tried the viewport object, generateViewport, and also the Head component.
The docs say it:
The viewport object and ...
0
votes
0
answers
83
views
Next.js 14 – How to Force Initial Viewport to 100% to Fix Scaling Issues?
I'm facing an issue with Next.js 14 where my layout breaks on laptops and other devices that have Windows display scaling enabled by default. Some UI elements get misaligned, and the overall layout ...
1
vote
0
answers
97
views
Scroll Sync between 2 Cdk virtual viewports header and row
I'm using a separate CDK virtual scroll viewport for the header and need to keep it synchronized with the main row viewport. Currently, I'm using the elementScrolled event of the row viewport to track ...