Hello,
when resizing windows on Windows, they will sometimes look like this
after releasing the mouse button:
http://dl.dropbox.com/u/21555916/window-damage-1.pnghttp://dl.dropbox.com/u/21555916/window-damage-2.pnghttp://dl.dropbox.com/u/21555916/window-damage-3.pnghttp://dl.dropbox.com/u/21555916/window-damage-4.pngwhich is not a suitable experience for innocent users.
Anyway, there seems to be a simple solution by removing one line:
ScheduledWindow>>extentEvent: aPoint
"Notify subcomponents of a change in extent.
Make sure the receiver does not do invalidation until after
layout has been carried out. This eliminates several bugs
associated with components that display when their bounds
are not set."
self component ifNotNil:
[:cmp |
self sensor
invalidationSuppressWhile: [cmp bounds: (0 @ 0 corner: aPoint)].
" Patch: do not repair now, to avoid clutter.
Was:
self sensor invalidationSuppressed ifFalse: [cmp repairDamage] "
]
The damage will still be repaired, so manually triggering the damage
repair in #extentEvent: seems to be unnecessary.
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc