Skip to main content

Questions tagged [viewport]

A viewport is a rectangular viewing region in computer graphics, or a term used for optical components. It has several definitions in different contexts.A viewport is a region of the screen used to display a portion of the total image to be shown. Also it can be a group of regions that together make one layout.

viewport
0 votes
1 answer
33 views

HTML infinitly sidescrolling images move unexpected

I'm currently working on this HTML website, in which there is a container with images, which are supposed to infinitely scroll horizontaly, but with my logic they move a bit further or a bit less then ...
Leonard __'s user avatar
0 votes
0 answers
43 views

fabric.js-What's the viewport of a canvas?

I'd like to ask, if I put a canvas inside a div container, what is the viewport of the canvas? Is it the div? I don't understand what 'viewportTransform' refers to as the viewport. <div id="...
olivia's user avatar
  • 1
0 votes
0 answers
21 views

Keep Element Inside Viewport

I want to show "tooltips", for dfns, positioned to the right and above each respective dfn element. I'm using dfn[title]:hover::after with content: attr(title) to show big, custom pseudo-...
Garrett's user avatar
  • 3,023
0 votes
0 answers
8 views

Viewport not showing expected objects

I'm trying to create a simple display which has: 3 Spheres, 1 at center and 2 which move according to a list of positions I'm trying to simulate a camera attached to each moving object. In the scene I'...
MYousefi's user avatar
  • 1,008
0 votes
2 answers
26 views

How to get the *rendered* width of element with javascript/jquery? All methods tried yielded only intrinsic width

I have a slider with a html like this <div id="bilder"> | height: 70vh; <div id="pappediv"> | height: 100%; <div id="slider&...
Dominik Lenné's user avatar
0 votes
1 answer
21 views

How to have a figure to always be visible in the viewport?

Using Tailwid and daisyUI component library, I'm designing a page with two section. The left section contains text and button. The right section is a figure with caption. I want the whole <figure&...
Ooker's user avatar
  • 2,625
0 votes
0 answers
29 views

Jquery when viewport is < 768 then [duplicate]

I like to add script to my code but don't know how. My code: $(window).scroll(function(){ if ($(this).scrollTop() > 44) { $('body').addClass('fixed-header'); } else { $('...
fourroses's user avatar
  • 134
0 votes
0 answers
16 views

How to prevent virtual keyboard from moving entire page upward in react/next?

As you can see, in react/next - on Safari the virtual keyboard pushes the whole page up, which I don't want. I've tried different meta viewport tags to no avail, ive tried setting a useEffect to ...
Thomas Ventura's user avatar
0 votes
1 answer
103 views

Pagespeed: problem with "initial-scale" - Does not have a <meta name="viewport"> tag with width or initial-scale

I am working on a site that has a meta viewport tag with an initial-scale value of 0.8. The full tag is here: <meta name="viewport" content="width=device-width,initial-scale=0.8,...
Mhatma's user avatar
  • 45
0 votes
0 answers
22 views

Blurring with SubViewport in Godot

When I add a SubViewport node to a 2D scene and render a 3D scene with the SubViewport, scaling the window causes the 3D scene to become blurry: I tried to change the project settings for display/...
iccc's user avatar
  • 11
-1 votes
1 answer
29 views

a white space is left when my viewport is smaller that 998px [closed]

I was trying to set up some media querys in my html and css project and all seem to work just fine, but i notice that when i shrink my screen an empty white space is left at the right side of the ...
Riccardo Fantechi's user avatar
1 vote
1 answer
54 views

Resize Image with Viewport

I have an image contained in some divs. The image initially, on a widescreen monitor, sits in the central 50% of the viewport. When the browser window is shrunk down to the size of the image I then ...
AL W's user avatar
  • 37
0 votes
0 answers
41 views

How to move camera in matter.js world?

I am making a RTS game in matter.js, similar to starcraft. One thing I want to implement is panning around with viewports. I created the canvas and the world const canvas = document.getElementById(&...
omega's user avatar
  • 42.9k
0 votes
0 answers
54 views

how to change viewPort width of big screens to 1280px in react

I am currently utilizing HTML2Canvas and jsPDF to export a PDF document. When the browser viewport width is 1280 pixels, the resulting PDF displays the UI as intended. However, I have encountered an ...
Rishav Singh's user avatar
0 votes
0 answers
15 views

How do i remove viewport error for Progressive web app when doing audit

I have my web app optimized for PWA it passed the check when i used lighthouse chrome tools but when i deploy the site and check again i get this error. The viewport size of 412px does not match the ...
Darryl Mbae's user avatar

15 30 50 per page
1
2 3 4 5
191