Community
Participate
Working Groups
I20100511-0800 The content of a StyledText doesn't keep up with your keystrokes. You can see this in CustomControlExample. 1. Launch CustomControlExample. 2. Switch to StyledText. 3. Check the HORIZONTAL_FILL and VERTICAL_FILL checkboxes. 4. Start typing at a fast pace. The text doesn't appear immediately. It seems to take a fraction of a second for the text you just typed in to repaint. Compare with a multiline Text, where there is no noticeable delay after typing.
Commenting out the line s.flushDisabled() at Composite.java:557 fixes it, so we appear to be too aggressive with the flush deferral.
This is a regression, so I think we should aim to fix it for RC2.
Do we need a call to NSWindow.flushWindowIfNeeded() in Shell.clearDeferFlushing()?
(In reply to comment #3) > Do we need a call to NSWindow.flushWindowIfNeeded() in > Shell.clearDeferFlushing()? That does appear to fix the problem. I'm doing some more testing, but it looks good.
Created attachment 168992 [details] Fix Call flushWindowIfNeeded instead of waiting for Cocoa to do it eventually.
Fixed > 20100518.