viewport

Footer Items Expanding with Viewport Evenly

こ雲淡風輕ζ 提交于 2019-12-24 03:27:05
问题 I'm trying to get a footer to display 5 items which space themselves out evenly, utilising the full width of the viewport. I've managed to get it working somewhat, but the last box flickers and gets pushed downwards when you resize the browser window bigger and smaller . http://jsfiddle.net/pnUnU/ I was wondering if there was a better way to go about coding this? And also, is it possible to stop the buttons from expanding with the viewport once they reach a certain (small) size? Much

How do I include screenshots of the full page in my serenity report (and not only of the viewport) using ChromeDriver?

孤者浪人 提交于 2019-12-24 01:18:56
问题 I am using serenity in combination with cucumber for automated screen tests and want to include full-page screenshots in my serenity report. The screenshots in the report are normally only a capture of the viewport. Oftentimes however, this doesn't provide enough information as this is only a part of the screen. I found that the capturing of serenity screenshots is a part of driver implementation. As most drivers conform with the W3C definition of screenshots those drivers only capture the

JavaFX ScrollPane update viewportBounds on scroll

夙愿已清 提交于 2019-12-24 00:12:53
问题 I have a very large image I'm trying to display in JavaFX. To do this, I've split the image into several smaller ones, and only loading/displaying the parts that are visible in my ScrollPane . To detect the area visible in the ScrollPane , I'm adding listener to ScrollPane.viewportBounds . However, the viewportBounds is only updated when I resize the window, but not when I scroll the scroll bars. If I'm to be scrolling around my large image, I need viewportBounds to be updated when I scroll

jQuery(window).height() doesn't work on mobile browsers

拥有回忆 提交于 2019-12-23 09:26:00
问题 I have a full page slideshow using jQuery(window).height() and it works fine on most browsers, however I checked it out on my phone (Android Browser & Dolphin) and the slideshow just keeps growing endlessly, well beyond the height of the view-port. This is my code: var height = jQuery(window).height(); jQuery('.slide').each(function(index, element) { if(height > 600) jQuery(this).height(height); else jQuery(this).height(600); }); jQuery(window).on('resize orientationChanged', function() {

why does my font-size look so much larger in the android webview object than when viewed in the android browser?

风流意气都作罢 提交于 2019-12-23 09:25:02
问题 I am trying to make one of those tiny android apps that do nothing but display a website in a webview object rather than the browse and so far it loads the target webpage but the text and image sizes are all much larger than when the page is viewed in the actual device browser. In the browser the page looks right but not in my app. Inspecting the page in my desktop chrome reveals the css is using font-size 6em if that helps you. When I include a viewport meta tag it does not do anything for

Viewport height problem when browser goes fullscreen

一笑奈何 提交于 2019-12-23 05:59:23
问题 Well this is an odd behaviour. I'm coding the frontend of a metrics app that must be viewed in a large tv. I use Html, Js and Css (bootstrap 4). It's for general public so we must hide browser tabs, etc.. Whenever I set the browser to go fullscreen, a big white row appears at the bottom of the page. Please see attached picture. The odd part is that there isn't any element there. It's like the viewport just gets bigger and forgets to cover the bottom with stuff. Is this a known issue? How to

How to save inset viewport plots into .pdf file using grid and ggplot2 packages in R?

不羁的心 提交于 2019-12-23 05:32:12
问题 I created three overlapping plots in R using the diamonds data set using the viewports below. Is it possible to get them formatted the same way [overlapping] into a .pdf file? vp <- viewport() sbvp <- viewport(width=1,height=1,x=.5,y=.5) sbvp1 <- viewport(width=.4,height=.2,x=.28,y=.18) sbvp2 <- viewport(width=.4,height=.2,x=.8,y=.72) print(p0, vp=sbvp) print(p1, vp=sbvp1) print(p2, vp=sbvp2) Tried two separate ways [one below]. I understand ggsave wasn't working because it just works on the

Object picking with 3 orthographic cameras and 3 viewports - three.js

时光总嘲笑我的痴心妄想 提交于 2019-12-23 04:08:29
问题 I have a WebGl/ThreeJS application, where I have 3 WebGL Renderers, 1 Scene and 1 Canvas for each renderer . The first 2 Canvases are ok, they work fine. The other canvas, is divided in 3 equal-dimension viewports and in each viewport I have added an orthographic camera in a different position. So I want to be able to detect mouse events on the objects that there in this Scene. I want to detect them in all of the viewports independently. All this, because I want to create a drag and drop

How to set the viewport on a non-responsive mobile site?

放肆的年华 提交于 2019-12-23 03:31:39
问题 I am styling a non-responsive website and having issues in mobile views. I have no viewport set. I assume content should appear the same on mobile as it does on desktop only zoomed out. Here is a visual of my issue: Explanation: When viewing on desktop it is fine. On iPhone (mobile) the header, nav and footer's widths shrink (see image) and the main content essentially extends beyond the phone viewframe (or viewport or whatever)... Thanks! 回答1: If your site is not responsive, it will help to

How to set the viewport on a non-responsive mobile site?

為{幸葍}努か 提交于 2019-12-23 03:31:07
问题 I am styling a non-responsive website and having issues in mobile views. I have no viewport set. I assume content should appear the same on mobile as it does on desktop only zoomed out. Here is a visual of my issue: Explanation: When viewing on desktop it is fine. On iPhone (mobile) the header, nav and footer's widths shrink (see image) and the main content essentially extends beyond the phone viewframe (or viewport or whatever)... Thanks! 回答1: If your site is not responsive, it will help to