positioning

UI Elements placed in IB appears shifted up in Simulator

I dont know if I am missing something here but when I drop elements (UIImage or UILabel) in IB and run the app in simulator, the UI elements are shifting up a little (Snapping to status bar if I place them at first blue HIG line). Looks like some setting I am overlooking. Does this sound familiar? please help! Added Screenshot to expl...

Mobile, GPS, .NET, Google Maps

I want to know if it is technically possible to capture the position of a mobile phone with GPS from an application in the mobile phone. And send this position to a web service to represent the location from a web page. Does the phone have to have a special feature or a brand / model specific? Can you write the trace information in a fi...

Resizing content with the browser window

Hi All I have a UK map made as a flash/swf movie. This map is embeded in a div tag and floated aright in a 2 column layout with a left column, a header and a footer. I want the map to resize itself when the browser is being resized by the user or I want it to be resized as the left column's height increases and decreases. Basically the ...

jQuery colorbox : How can I change the position of the colorbox

By default the colorbox appears centered both vertically and horizontally on the screen. Is there a way to change that, for example to 10% from top vertically and centered horizontally? ...

How to ensure my form is visible in C#?

I'm looking for a way to check to see that a window I am creating is visible and entirely on one monitor. I have seen too many programs do nasty things when they try to restore their position and the place no longer exists and I don't want my program to be vulnerable to this. How do I find the information on the actual layout of the mo...

Positioning circles

Hi, I'd like to position a given amount of circles in a field, whose size is also known. The circle's sizes can be freely choosen (although it should be >0). They may not overlap. The problem: Performance is critical. Just randomly positioning them and reposition them in case they overlap is not fast enough. My target is the iPhone, s...

Two divs floating right one above another

Hi, I'm trying to put two divs on the right side of parent div one above another. Something like this: div#top |-------------------------------------||------------| |div#parent ||div#menu | | |---------|||float:right | | |div#up ||| | | ...

Container Div not expanding & Footer Stuck

Hi there! Description: I have a page, with a container (div.display). The div for the main content of my page is called #main. For a long time I struggled to get this div expand automatically with content and push the footer down, the one day I got it! However, now that I've gone onto the next version of my website, I've somehow broke...

Why is there a difference in the tweening I am doing when I tween two objects?

I have a TextField and a Sprite both at y = -20; and they are in the correct position. Then I do this tween. Tweener.addTween(t, {y: 20, time:0.5, transition:"linear"}); Tweener.addTween(noteBar, {y: 20, time:0.5, onComplete:Hold, transition:"linear"}); (t is the TextField and noteBar is the Sprite) What happens when I do this is th...

Jquery: Why will this if-else statement only follow the if, or the else, but wont follow both when they're different conditions that can be met..

Question: Why wont the If and the Else both work, when both conditions can be met at different times by scrolling below or above '.fakeheading'? Is the Else-statement overpowering the If-statement? JQUERY: $(window).scrollTop(function() { $('.grid_12').find(function () { var $header = $(this); if ($header.off...

How to control positioning of jQueryUI 1.8.2 datepicker for iphone

On the page below, the popup date appears perfectly in all browsers except the iphone where it fails to position the date under the input but places it outside of the body of the page. This seems to be a common problem and I would love it, happy to donate, if a cure can be found that can be explained to and implemented by me: http://ww...

Positioning checkmark from JQuery Validation

Site: http://tinyurl.com/358lh6a If you notice, the checkmarks are align with the table. I want the checkmark next to the port to be just right of it, not all the way aligned to the right as it shows. Edit: Here is a picture showing what i'd like. ...

IE position:relative displaying as if position: static

Hi Guys, i have the following html (excerpt from larger code-base) <div class="diary-event ui-corner-all" title="[title]"> <span id="delete"></span> <div class="diary-event-title ui-corner-all">[title]</div> <div class="diary-event-body ui-corner-all"> <p class="hyphenate">[body]</p> </div> </div> (where [titl...

Dynamically re-positioning div layer base on ordering setting.

I have 3 div layers (divContentA, divContentB, divContentC) with different contents (can have textbox or label). User is allowed to set the ordering base on their preference. E.g divContentA set to 2, divContentB set to 1 and divContentC set to 3. These ordering setting will be store in DB. I have 3 empty div layers (divBox1, divBox...

With three divs, how to make one float to the right?

I have three divs: <div class="A">A</div> <div class="B">B</div> <div class="C">C</div> I want them to be positioned like this: A C B Where C should always be in the top right corner of the container they're in. How do I go about this in CSS using only the three divs and in that order? I've tried a lot of different combination...

UIViews display at wrong location in landscape mode

I am working on an diagramming application which displays boxes as subviews inside a larger view. The user can move the boxes around. I am persisting the positions of these boxes using core data into a sqlite database by holding the height, width, x and y (of the top-left corner). When I open up a diagram I am reading these values from t...

How do I set the position of a dialog so it is centered in it's parent frame?

I have a dialog class with a constructor like the following public SampleDialog(JComponent parent, String title){ super((Frame)SwingUtilities.getAncestorOfClass(Frame.class, parent), title, false); setLocationRelativeTo(parent); init(); } However, this positions the dialog so that it's upper right hand corner is in the c...

Click through a DIV to underlying elements

Hi there, I have a div that has a transparent background, and a border - sort of like an actual window, window-frame, and transparent walls. Under this, I have more elements. Currently, I'm able to click the underlying elements when I click outside of the overlay div; however, I'm unable to click the underlying elements when clicking ...

winforms position and dimension properties

I'm trying to untangle all the position and dimension properties of winforms, and it would be really helpful if there were a comprehensive overview explaining the relationships between them. Many of them appear to be functionally equivalent, but I'm concerned I may be making some false assumptions. For reference, I am referring to prope...

Text doesn't fade into right position due to multiplication issue in javascript

Hey all, It's strange that the same functions are being called here but the #group3 text doesn't fade into the right position. I think it's a math issue: var triggerID = $active.attr("rel") - 1; var image_reelPosition = triggerID * imageWidth; //The first time the 'rel' attribute is 2 and the second time the rel attribut...