Fixed an issue where TextBoxBase.setSelectionRange() can throw an error if the element is not attached to the page or not visible.  Also fixed an error in TextBoxBase.getSelectedText() where it throws an exception in IE if the cursorPos is -1, which can happen if the element is not attached.

Patch by: jlabanca
Review by: ecc
Issue: 1385

git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@3666 8db76d5a-ed1c-0410-87a9-c151d255dfc7
3 files changed