Hi Derrell,

if you are talking from the final position inside a node, you can use  
one of the methods in qx.html.Offset. For example there is a method  
named: qx.html.Offset.getTop.

But if I understand you correctly you want to determine the real  
target (in DOM view) for a mouse event. You can try to use the  
property domTarget of all Mouse- and KeyEvents. I think this should  
perform better than calculate positions.

Hope this helps.

Sebastian



Am 31.01.2007 um 20:52 schrieb [EMAIL PROTECTED]:

> "Nick Glencross" <[EMAIL PROTECTED]> writes:
>
>>>>> However, I've been having trouble with opening/closing  
>>>>> Branches. For
>>>>> example, in ...
>>>
>>> I'll need to revisit this later today as my standalone test does
>>> actually work as expected, yet I'm getting some funny results
>>> elsewhere. I'll try to isolate the factors involved.
>>
>> Here's an example of the other problem that I've been having with
>> opening/closing, which seems to relate to whether it is put within
>> another container.
>
> HELP, PLEASE.  I need help determining the position of a widget  
> that has
> already been rendered.
>
> It turns out that it's not putting the tree within another  
> container that's
> causing the problem, but rather the positional offset of the tree.  My
> calculations of where the click occurred in relation to the left  
> margin of the
> tree incorrectly assumed that the mouse event's clientX position  
> referred to
> the "client" being the widget in which the click occurred, i.e. the
> TreeVirtual widget.  That's not the case, though.  clientX is the  
> native mouse
> event's clientX which is the X position in relation to the whole  
> application
> area of the window, so if the tree is not at the left margin, the  
> calculation
> fails to provide useful information.
>
> I have been searching fruitlessly for a way to determine the  
> location of the
> tree widget (or of the open/close button) within the client area.   
> There MUST
> be a way to find out where something is located on the screen even  
> if it's not
> been manually placed there with a top/left position, but I sure  
> can't find it.
> Is anyone able to help me with this???
>
> Thanks,
>
> Derrell
>
> ---------------------------------------------------------------------- 
> ---
> Using Tomcat but need to do more? Need to support web services,  
> security?
> Get stuff done quickly with pre-integrated technology to make your  
> job easier.
> Download IBM WebSphere Application Server v.1.0.1 based on Apache  
> Geronimo
> http://sel.as-us.falkag.net/sel? 
> cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to