Hi,
i have the following problem, let's say i have a html element (input field) inside a paragraph. And this input field gets the style text-align: right inherited. When i ask for the offSetLength like this in gwt:
Document.get().getElementById("elementId").getOffsetLeft();
i always get 0 back. Obviously the style which moved the input field and therefore should change the value of getOffsetLeft() is not being considered or something similiar.
My long term goal is that i want to add another html element (div) under the input field with the same left value. The element i want to add there has the style position:absolute, is a block element and is being injected just after the input field. What happens in this scenario is that the input field is aligned right but the element which i put next is not. I thought that i could set the left value to the left value of the input field but since i get 0 as value this is not a valid way to go.
I'm not an expert with css and positiong elements so i don't even know if i'm missing something or there is a better way to do this. The main problem i think is that i can not control which css style the input field will have. It could be right aligned or left or anthing else. I hope i could explain my problem enough.
thx, kuku