Some fixes for positioning the WebTextView.
Move the change in position/size before the call to bring into view, so that the properly positioned field will be brought into view. It is also now before we check to see if it is the same textfield, so it happens in both cases. Also remove some code which checks the selection and then sets it unnecessarily. It was originally surrounding some code which called setRect, which had a side-effect of changing the selection. That code was removed (rendering the remaining code useless), and setRect no longer has the side effect (the side effect was a result of calling reqestFocus, which it no longer does - further, the change in selection from requestFocus no longer affects the textfield's text).
Loading
Please register or sign in to comment