relative and absolute position odd behavior
I was trying to solve this problem to avoid posting more question.
My problem with the elements (img) created using document.create Element and append them to an element (div) then attach them to a dragHandler when I set the position as relative they take an odd behavior - a restriction in the arrangement; the first element can be dragged and dropped anywhere, but the second has to be on the left-top of the first the same for third element has to be on the left-top of the second and so on.
The second problem with absolute-position, in the first click to the created element - to be dragged - the element change its position to the top of the page. Then its OK working fine; no change in position.
Has anyone any idea why this happens?!!
Thanks
I was trying to solve this problem to avoid posting more question.
My problem with the elements (img) created using document.create Element and append them to an element (div) then attach them to a dragHandler when I set the position as relative they take an odd behavior - a restriction in the arrangement; the first element can be dragged and dropped anywhere, but the second has to be on the left-top of the first the same for third element has to be on the left-top of the second and so on.
The second problem with absolute-position, in the first click to the created element - to be dragged - the element change its position to the top of the page. Then its OK working fine; no change in position.
Has anyone any idea why this happens?!!
Thanks
Comment