jQuery UI dialog positioning : adjust position top by 20px –
Changing the last value solved the problem: position: [‘center’,20] http://jsfiddle.net/chrisloughnane/wApSQ/3
Changing the last value solved the problem: position: [‘center’,20] http://jsfiddle.net/chrisloughnane/wApSQ/3
I believe z-index is relative to the nearest positioned element. So, if you had two divs inside the “1111” div, they could be z-index’d relative to each other, but since 2222 is a child of 1111, it cannot be z-indexed relative to 0000, and will always be above 1111.
vertical-align:top on the elements that you want to be vertically aligned (not on the parent), as they are display:inline-block.
It’s better if you remove width:100%. write like this: .photo-caption { left:0; right:0; background-color: black; position: absolute; bottom: 0px; margin-right: 10px; margin-left: 10px; margin-bottom: 10px; }
For people who wanted to move preview it to the right side… Change Layout (right corner of workspace second last option) to “Canvas on Right”
You can use the drag event: $(‘#dragThis’).draggable({ drag: function() { var offset = $(this).offset(); var xPos = offset.left; var yPos = offset.top; $(‘#posX’).text(‘x: ‘ + xPos); $(‘#posY’).text(‘y: ‘ + yPos); } }); JS Fiddle demo. This demo brought to you by the drag event, and the methods offset() and text(). Edited in response to comment … Read more
You can call ProgressDialog#getWindow#setGravity(…) to change the gravity. So: ProgressDialog dialog = ProgressDialog.show(AContext, “Test”, “On the bottom”); dialog.getWindow().setGravity(Gravity.BOTTOM);