Why UIImageView moves from its original place (interface builder) during runtime? - xcode4

I have placed 3 images into UIImageViews using xcode4 interface builder: background, and two pictures. Background image fills the whole visible area and it looks the same in interface builder, in simulator and on device. In addition, I'm placing another image at the very bottom (stick to) of visible area, and another one on top of it. Both looks as I want in interface builder. The problem is both bottom image and on top of bottom image moves approximately by 50 pixels up when running in simulator or iphone4 device. Interesting part is that background image fill whole visible area. I should note that I'm using UIInterfaceOrientationLandscapeRight orientation so the status bar in my orientation should appear on top but I have disabled it in plist, so I guess it's not related to this problem. Both of my problematic UIImageView's have mode "Bottom". Also, all of three images have #2x image twin. But why can see everything OK in interface builder and then some shift on simulator and device? Also, strange why background is not moved. Does anybody had the same problem?

Try hiding all elements in your nib. (status bar, tool bar, etc)
Make sure you have your springs adjust for your desired effect.
Hope this helps!

Related

CSS - Custom cursor image is reverting near edges of the viewport in Chrome

I have a page where the entire area is covered by a link. I have implemented a custom cursor with a 60x60 px PNG image when the user hovers over the link (so anywhere on the page, the cursor should appear as a white X).
My issue is this: When the cursor (or rather, the edge of the image shown by the cursor) touches the edge of the page, the cursor reverts to the "pointer" state which I assigned as a fallback. Here's the CSS I used:
cursor: url('https://i.ibb.co/pRX8Fxg/close.png') 30 30, pointer;
In the jsfiddle I made of the issue, this only seems to happen with the top and left sides, and not the bottom and right sides (which is very confusing since that invalidates my theory that it was due to the edge of the browser). In my page however this happens with all four sides.
The issue is nonexistent with Firefox, and with Edge when I use a .cur file.
I've tried: using a .cur file instead, changing the position of the hotspot, trying to figure out what jsfiddle's page does differently.
Any help would be much appreciated.
Keep your cursor smaller or equal to 32x32 DIP.
Custom cursors with widths or heights greater than 32 DIP will be
removed if they intersect native UX (i.e. are not fully contained in
the visual viewport).
Large cursors are being used abusively on the web, to confuse users
(see https://crbug.com/880863). Specifically, large custom cursors can
be used to cover important (sometimes security related) browser native
UX with an arbitrary image to mislead users into thinking they are
clicking outside the content area.
Source: https://www.chromestatus.com/feature/5825971391299584

Black background shows up at the right side of the screen when viewing the page with resized screen

I have search all over the internet and tried for hours to resolve the issue with no avail!
Visit http://testdrupal.ml/node/126 on your mobile device or from your desktop but with resized window to any size... and you will notice a black background will show up at the right side of the screen.
I have tried for hours to play with css and yet the problem not solved!
Can someone please point me to the right css style to be used in order to make this black background disappear ?
Using:
Drupal 8.6.10
Default Bartik theme
An image showing the black background
I want to provide the full css code but the project is private and I can only provide full information with website access in a private chat... I hope someone will be interested!

How to Resize Background Images to fit iPad Screens

I'm running into a problem. When I view my website on a computer and phone, it's built perfectly; but, when I pull it up on an iPad, the background images are like blown up. My website is http://www.zwdalpha.com/, any help will be very appreciated! Also, my Github is https://github.com/zcsmouse970/zwdalpha
To address the issue, you first need to understand what is happening. Background image sizes are handled with the background-size attribute, which you currently have set to cover. cover is great for large screens because it makes sure the image "covers" the height of the element. This allows for clipping on the sides to make sure it fills from top to bottom. contain is the opposite of that. It makes sure you can see the entire image at all times. It does this by making sure the width is 100% and the height is left to clip or expand. When you see on tablets and smaller that the images are "blown up", the CSS is making sure that the entire content area is filled with the image, and it does this by making sure the height of the image fills the content pane. Here's where we get a little more detailed.
You have your images setup as fixed. Obviously this was the effect you were going for, but lets think about what needs to happen here. Now the image needs to be covering the screen from top to bottom because it is able to be viewed anywhere the content pane is while being fixed. So now your image is covering the entire viewport. You can see the changes it makes when you change it to background-attachment:scroll;. It instead fits the image into the content pane instead of the viewport.
All of that being said, the way you can change this is by implementing media queries and switching backgrounds to cropped versions that are more appropriate to the viewing dimensions.
Your issue appears to be to do with background-attachment: fixed not behaving as expected.
Try background-attachment: scroll

Highslide - unwanted background appears when mousing over around outside of expanded image

I'm having a problem with the expanded image in Highslide. For some reason, I'm getting some white/gray (#EBF6FF to be exact) background appearing when I bring the mouse close to the image around the outside. Here's a link to a screenshot.
It also does it on the sides (a white box/background appears, jutting out 13 pixels on either side, beginning at the bottom edge of the area shown in the image above), and the bottom, although for the bottom you need to mouseover outside the caption area, along the lower right and left corners of the image. The affected area is 13 pixels beyond the top and sides of the image. I've gone through my CSS and can't find any 13 pixel padding, and also can't find any references to #EBF6FF. Has anybody seen this before?
I've used Highslide in the past with the glossy dark border, but I wanted to switch to a borderless look. I'm not re-using any of the previous HS code (with the glossy border). I started this one from scratch using the latest version (4.1.13). Everything else is working fine, the only problem is with this unwanted background appearing on mouseover. Unfortunately, I'm still developing this on my localhost, so don't have it live to view on the web. But I can provide any code that you may need.
Thanks in advance for any help/suggestions anybody can provide!
Edit: This site isn't finished so I can't upload it yet, but here's a link to a video I took showing the issue.

Force widget resizing in Qt

I'm writing an image viewer, and I'd like some behavior from Qt:
imagine the viewer displays the image in a 256x256 box. Now I want that ctrl+Z do a zoom + resizing of the window; ie. show the 2x zoomed image in a 512x512 box, how can I do that?
Also, imagine know the user gave a certain shape to my viewer, and that he presses F10, I want to change the layout to display the viewer in the same size (if possible, eg not overflowing the screen) and add additional controls under it, and resize the complete widget in a way that the viewer widget does
Maybe you could use the QWidget::minimumSize property to change the widget minimal size.
If the size of your zoomed image gets bigger than the screen, you might have to put your widget into a QScrollArea.

Resources