avoid `on-size' problems
Merge to 5.1 original commit: e2c43bf3ecc969112693e926bbbb7cf846fea4eb
This commit is contained in:
parent
e96d9460fd
commit
4cd3e192f4
|
@ -206,8 +206,8 @@
|
|||
(set! old-h h)
|
||||
(as-exit (lambda () (send mred on-size w h)))))
|
||||
(let* ([p (area-parent)]
|
||||
[x (- (get-x) (or (and p (send p dx)) 0))]
|
||||
[y (- (get-y) (or (and p (send p dy)) 0))])
|
||||
[x (max -10000 (min 10000 (- (get-x) (or (and p (send p dx)) 0))))]
|
||||
[y (max -10000 (min 10000 (- (get-y) (or (and p (send p dy)) 0))))])
|
||||
(when (not (and (= x old-x) (= y old-y)))
|
||||
(set! old-x x)
|
||||
(set! old-y y)
|
||||
|
|
Loading…
Reference in New Issue
Block a user