You know what they call that ? They call it a bug!
Just looking at the code I can see it does not search the list of parents until it reaches the scrollbox so what you are getting is the offset start of where the EDIT control lives within the Tpanel
You can correct this yourself of course if you wish, you will need to get the screen cords of the EDIT control, and get the screen cords of the Scrollbox.. Subtract the EDIT control from the Screen cords and that is your offset to give the scrollbars..
Or you could report this to the bug site and see where it goes from there ?