Tk Source Code

View Ticket
Login
Ticket UUID: 219908
Title: Bug when using negative coordinates in window geometry
Type: Bug Version: obsolete: 8.0.3
Submitter: welch Created on: 2000-10-31 18:27:53
Subsystem: 65. Generic Window Operations Assigned To: nobody
Priority: 1 Zero Severity:
Status: Closed Last Modified: 2000-11-01 01:27:53
Resolution: Duplicate Closed By: welch
    Closed on: 2000-10-31 18:27:53
Description:
OriginalBugID: 864 Bug
Version: 8.0.3
SubmitDate: '1998-11-25'
LastModified: '1999-08-06'
Severity: LOW
Status: Closed
Submitter: pat
ChangedBy: hobbs
RelatedBugIDs: 2326
OS: All
OSVersion: NA
Machine: NA
FixedInVersion: NA
ClosedDate: '1999-08-06'


Date: Thu, 5 Nov 1998 07:50:57 -0800 (PST)
To: [email protected]
Subject: Bug when using negative coordinates in window geometry
From: [email protected]

Tk 8.0.3 Bug

email:  [email protected]
Support:  None
Severity:  4
OperatingSystem:  Windows NT
OperatingSystemVersion:  4.0
Synopsis:  Bug when using negative coordinates in window geometry

ReproducibleScript:
proc change {} {
    global test n
    if {$test == "qwerty"} {set test zxcv} else {set test qwerty}

    incr n
    if {$n < 5} {after 1000 change}
}

pack [label .l -textvariable test]
set test qwerty
set n 0
wm geometry . -400-200
after 1000 change


ObservedBehavior:
The window moves over the screen when the label's text changes.


DesiredBehavior:



Comments:
I have tested this with 8.0p2 under Solaris also.
The effect is the same there, if I run it with "wish scriptfile".
When I source the script from the wish prompt, the bug does not appear.