overlay

Overlaying DIVs with z-index

拜拜、爱过 提交于 2019-12-06 12:32:56
I am trying to overlay a div over my entire page to show a pop-up. The problem is, it won't overlay over the entire page. Here is an approximation of the code: <div style="z-index:902;"> <div style="position: fixed; width: 100%; height: 100%; left: 0; top: 0;"> Overlay </div> Contents of container 1 </div> <div style="z-index:902;"> Contents of container 2 </div> <div style="z-index:902;"> Contents of container 3 </div> The overlay div appears on top of container 1, but the contents of container 2 and 3 appear on top of the overlay. I cannot move my overlay div outside of the container 1, as I

floating UIButton with image on a UITableview [duplicate]

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 11:56:53
This question already has answers here : How to put buttons over UITableView which won't scroll with table in iOS (9 answers) Closed 4 years ago . I try to implement a floating button over a UITableview . So that when the content scrolls the button stay at the same position. The button shall hold a transparent image. I did a smoketest and it worked fine with insertSubview:aboveSubview: respectivly addSubView But doing this on a UITableview of an TableViewController does not seem to work. The Button is on the tableView and scrolls with the tableView. Interestingly it scrolls as well under the

ViewGroupOverlay doesn't show view

余生颓废 提交于 2019-12-06 11:55:25
I'm currently trying to create a puzzle game where I have a grid and each cell should be able to show a visual (and only visual) indication on touch. Therefore, I intent to use the ViewGroupOverlay (with getOverlay()) with a custom view: In each CellView @Override public boolean onTouchEvent(MotionEvent event) { if(event.getAction() == MotionEvent.ACTION_DOWN) { LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); View myView = inflater.inflate(R.layout.overlay, null); gridView.getOverlay().add(myView); } if(event.getAction() == MotionEvent

Google Maps API v2 for Android: Cannot draw like deprecated Overlay

流过昼夜 提交于 2019-12-06 11:54:20
问题 I have developing an Android application, and I have moved from Google Maps for Android API v1 to v2. With deprecated version 1 I created an Overlay for drawing some colored shapes (delimiting zones) and info text over my map, but now I have been viewing API v2 and cannot do the same. I have trying to use Polygon property, but it doesn't fill with any colour, maybe because my shapes cannot be drawing in counterclockwise due to the pattern of them, for example a shape with 'U' pattern. Also, I

Overlay two bitmap images in WPF

百般思念 提交于 2019-12-06 10:11:26
问题 I need to overlay two images (say, JPEG and PNG with transparency). Input: - JPEG image - PNG image Output: - JPEG image with PNG applied. What is the best approach to do that? Thank you in advance for the replies and hints! Cheers 回答1: You can use a DrawingGroup like this: var group = new DrawingGroup(); group.Children.Add(new ImageDrawing(new BitmapImage(new Uri(@"...\Some.jpg", UriKind.Absolute)), new Rect(0, 0, ??, ??))); group.Children.Add(new ImageDrawing(new BitmapImage(new Uri(@"...

Overlay Image above Embedded pdf

允我心安 提交于 2019-12-06 09:58:57
问题 I am attempting to overlay an image above a pdf embedded in and iFrame. This code results in the image falling behind the iFrame (tested by changing the bottom attribute to -10px and the bottom of the image becomes visable) The only two methods I was aware of were using z-index, and the fact position absolute should place the object on top, but neither appear to be working. <div id="images" style="float:right;position:relative" width="400" height="250"> <img src="images/Next_Black_Arrow.png"

Overlay.draw() calls many times

浪尽此生 提交于 2019-12-06 09:35:51
问题 I have a question regarding the draw() method of the Overlay class in Android Maps. When I move map, method draw() get called a few times (from 4 to 13). It's a problem for me, because this method must repaint my route with 70000+ points, and this is a lot resources. I can't find description for this problem, but when I use code examples from any sources, I have same problem. 回答1: This is the normal behaviour. When you move the map, you expect it to move smoothly and to achive that any map

GWT Overlay deep copy

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-06 09:29:39
What is the best way to make a deep copy of a gwt overlay type? I'm looking for a function or library that inspects a GWT overlay and clones it. It must be able to clone contained arrays or objects. Thanks There are 2 ways that I would consider. Most of the time overlay objects are used in conjunction with JSON, so you could just stringify the object and parse the results: public native MyOverlayType deepCopy()/*-{ return JSON.parse(JSON.stringify(this)); }-*/; OR public static native MyOverlayType fromJson(String json)/*-{ return JSON.parse(json); }-*/; public native String getJson()/*-{

jQuery UI overlay without dialog [duplicate]

放肆的年华 提交于 2019-12-06 09:13:38
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: jQuery UI: How to use ui-widget-overlay by itself? I want to avoid the user to change the screen during ajax calls. So I was thinking to use jQuery UI overlay (the overlay of the modal dialogs) but without any dialog. I couldn't find any way to do this. Is there any way to show a modal without a dialog? 回答1: I take this answer of another SO question. Here there is a fiddle. And the code: $("body").append($.ui

CSS Margin Negative without Moving Parent Container

不想你离开。 提交于 2019-12-06 08:44:52
问题 I am trying to get on this page (http://musicaladvocacy.org/) the area where it says "Home" (The White Container in the grey gradient) to go ~60 px up, but as you can see it does that as well as moves the parent container up. I just want the white box to move up NOT the whole thing. So it should look like this: http://musicaladvocacy.org/index-margin.jpg Thanks for any ideas! 回答1: You can apply position:relative; top:-60px; on the element you need to shift up. #el { position:relative; top: