<AWT Dev> Review Request For 8149636: TextField flicker & over scroll when selection scrolls beyond the bounds of TextField.
ambarish.rapte at oracle.com
Tue Mar 8 15:48:37 UTC 2016
Please review the webrev.01, updated as per review comments
1. Added similar changes for TextArea.
2. Added automatic test to test over scroll.
3. Text Field Flicker test is manual, as cannot be automated.
From: Semyon Sadetsky
Sent: Friday, March 04, 2016 11:57 AM
To: Ambarish Rapte; Prasanta Sadhukhan; awt-dev at openjdk.java.net
Subject: Re: <AWT Dev> Review Request For 8149636: TextField flicker & over scroll when selection scrolls beyond the bounds of TextField.
the first point is not valid. Please, ignore it.
On 3/1/2016 11:14 AM, Semyon Sadetsky wrote:
- The over scroll remains after the proposed fix.
- The bug is a regression of 7092551 and should be labeled correspondingly.
- An automatic test may and should be provided with the fix.
- The same issue existing in the TextArea should be fixed as well.
On 2/11/2016 12:23 PM, Ambarish Rapte wrote:
Please review the fix for JDK9,
While scrolling with selection, when mouse is dragged outside the bounds of TextField,
a. TextField flickering is observed
b. TextField over scrolls on right. Text gets hidden on left side even when no scroll is needed.
a. Flicker -
For simulating scroll, scroll bar information is used.
To get correct scroll info, scroll bar should be visible.
Showing and hiding of scroll bar causes the flickering.
b. Over Scroll -
The scrolling logic scrolled the textField in units of half the si.nPage. i.e. (si.inPage / 2) maximum till si.nMax,
Which causes the over scroll.
ES_AUTOHSCROLL set for the TextField enables the automatic horizontal scrolling, so we need not add code for scrolling.
Only selection should be updated as the mouse moves.
Hence removed the code to related to SendMessage( WM_HSCROLL,.) i.e. scrolling
Manually Verified that textField editing / selection / copy / paste works fine.
No Jtreg, JCK tests related to TextField fail due to this change.
Updated an existing test ScrollSelectionTest.java to test the scenarios mentioned in the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the awt-dev