Community
Participate
Working Groups
Type a really large word with no spaces. The caret will go outside the viewer and disappear. The caret gets placed during the updatemanager's validate step. It's going to be tricky to actually scroll the viewport right after the layout has occurred. I think it's not a problem though. It just adds more dirty regions and should not cause more invalid figures to be added.
Created attachment 25467 [details] patch for the caret and scrolling problem see my comment.
Comment on attachment 25467 [details] patch for the caret and scrolling problem Hi, I have created a patch for the problem. The viewport is updated by update manager in the same way as it's done for the caret. Also, it fixes the problem with scrolling using scrollbars or a mouse wheel. I have created an inner class in GraphicalTextViewer that listens to the viewport's range models.
Aah, now I see why the patch you attached to bug 105813 seemed to have a lot of code that wasn't required. It included the fix for this bug as well.
Takahirosan, for this bug fix, I suspect you can get away with updating the viewport's location during caret refresh, if needed (instead of having to do a separate viewport refresh).
Yes, you should be able to call queueViewportRefresh() before/after queueCaretRefresh() call in the update listener.
Unset target milestone as the specified one is already passed.