7.8 on Windows & display clutter

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

7.8 on Windows & display clutter

Holger Kleinsorgen-4
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.png
http://dl.dropbox.com/u/21555916/window-damage-2.png
http://dl.dropbox.com/u/21555916/window-damage-3.png
http://dl.dropbox.com/u/21555916/window-damage-4.png

which 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