position

Why doesn't this DIV drop down in the right spot?

Okay, here is the problem. I have an unordered list with a bunch of items. For each item, there is a corresponding DIV that will drop down when the item is hovered over. The sample can be found here. Now, it works fine unless you scroll down the page a bit and then try to hover over the item. Then it slides down further up the page tha...

git alias with positional parameters (git foo aaa bbb ccc => foo aaa && bar bbb && baz ccc)

Basically I'm trying to alias: git files 9fa3 ...to execute the command: git diff --name-status 9fa3^ 9fa3 but git doesn't appear to pass positional parameters to the alias command. I have tried: [alias] files = "!git diff --name-status $1^ $1" files = "!git diff --name-status {1}^ {1}" ...and a few others but those did...

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? ...

Custom titlebar positioning

Hi, I've created a custom titlebar for my Android application. All is well except I've placed a checkbox on the titlebar and I want my checkbox to be positioned farther left (so I can line it up with the checkboxes in each list item). I can not figure out how to move it farther left. It's almost like that's as far as it will let me p...

Changing position of images in a table view cell

Hi I'm messing around with iPad development, and I'm trying to create a table view similar to the one found in Apple's Mail application, when setting up an account for the first time. It's basically just a grouped table view, with an image representing each of the supported mail services in the middle of each table view cell. Now, I ha...

jquery javascript find how far left an element is with position:relative

in jquery/javascript I'm trying to find how far left an element is with position:relative. There are several elements between this one and the left of the screen. since it is positioned:relative and float:left using: $(this).css('left'); gives me '0px' every time. So how do I found how far the element is from the left of the scre...

Asynchronous api for obtaining GPS position in python for S60

I'm using positioning.position(). but this function is blocking. I want to be able to run another function while the GPS is being measured. thanks ...

richfaces how to detect mouse position

Hi! How can I detect the mouse position on a "onclick" event in RichFaces? Thanks! ...

How to change the positioning of a progress dialog?

I'm developing an android app and need to know how to change the positioning of a progress dialog. I need it to be positioned at the bottom of the screen instead of at the center like it is by default. ...

Check cursor is over element

Hello, how can I check whether the cursor is over some div at the html page with JQuery/Javascript? I'm trying to get cursor coordinates and look if they are in the rectangle of my element. Maybe there are predefined methods? UPD, don't say anything about hover events, etc. I need some method which will return true/false for some eleme...

C# Console - set cursor position to the last visible line

Hey, I would like to set the position of the cursor in the Console to the last visible line. How can I do this? Cheers, Pete ...

QT: help with QGraphicsView, QGraphicsScene, QGraphicsItem positioning

Hello, I am trying to use the QGraphicsview, but I have lot of trouble with it. My goal is very simple (for the moment): I want to create a basic pianokeyboard component, where you can set the number of keys, and where the keys automatically stretch when you resize the keyboard. I am a newbie in QT, so maybe I am wrong in the design t...

Flex 4 Spark List setting scroll position

Hello! How can I set the scroll position for a Spark List control please? Thank you! ...

Android: Change absolute position of a view programmatically

If you use an AbsoluteLayout (I know that it is deprecated, but it was the only way to solve my problem ) you can give the childViews the tag "android:layout_x" and "android:layout_y" to set their absolute position within the AbsoluteLayout. However I dont want to set these informationen in the xml, because I only know them at runtime....

CSS: position absolute fails in resizing

So i have this image with CSS styling: .city1{ position: absolute; /* float: left; */ top: 34px; left: 170px; } <a href="malmo/"><img class="city1" src="images/city.png" alt="Malmö"></a> Issue is when i use the position: absolute; when i resize my browser it changes the position. You may now say thats because its a absolute p...

IE8 - CSS overflow hidden, fix causes further problems with jquery

Problem part 1: Basically I have the age-old IE problem of overflow: hidden; not working in IE. The fix (which does work, admittedly) is to also add "position: relative;" to the element/parent; however this causes a problem for me. Firstly I want to know if there's another way without appending position relative. If this is the only ...

Internet Explorer: relatively positioned button alignment in absolutely positioned box

In IE7, my order sample button "#itmSampl" isn't vertically aligned with the ".add-to-cart" button to the left of it, although in FF3.6 and Chrome 5 it is. I need it to be aligned correctly in IE6-8. Does anyone see what I'm missing? <style type="text/css"> #buttonbox { position:relative; width:326px; } #accounting #box-accounting .ima...

Configure widgets positions on website

What is the commonly accepted way so an admin can set panels/widgets positions (i.e. from the image below, set "Data Finder" to sit on "top left") ? In other words, the customer/admin would like to be able to configure the widgets/panels positions at startup (and users see that by default), maybe using a JSON configuration file that is ...

c++ mouseover event

ok s it is really easy to create mouse over event if the object is NOT moving. but the problem that the object gonna be moving every 50 millisecond. it is not a string line so i can create a script it is a circle. i used to use getcursorpos(). than get the object x and y. the other problem is this p X--------------------- y | | ...

NSTextField cursor position

I'm trying to get the cursor position inside a NSTextField but so far unsuccessfully. Tried using [[myWindow fieldEditor:FALSE forObject:myTextField] selectedRange].location but no luck. Any ideas? ...