Tk Library Source Code

View Ticket
Login
Ticket UUID: 1474629
Title: BWidget::place wrong placement when above or left
Type: Bug Version: None
Submitter: nobody Created on: 2006-04-22 12:56:42
Subsystem: bwidget Assigned To: damonc
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2009-06-26 21:54:22
Resolution: Duplicate Closed By: oehhar
    Closed on: 2009-06-26 14:54:22
Description:
BWidget::place (used, for example, by ComboBox) does
the wrong thing when something has to be placed above
or to the left. Instead of placing as expected, the
placement is made somewhere off the top or left-hand
side of the screen.

This seems to be because the calculation for left or
above placement is wrong. Instead of $x0-$sw and
$y0-$sh, respectively, the calculations should be
$x0-$w and $y0-$h. The former takes the position of the
reference widget and subtracts from it the dimension of
the screen. This is incorrect. The latter takes the
position of the reference widget and subtracts from it
the dimension of the widget being placed, resulting in
correct placement.

This mistake appears several times throughout the
BWidget::place procedure.

Bug submitted by Mario Becroft <[email protected]>
User Comments: oehhar added on 2009-06-26 21:54:22:
IMHO, this issue was fixed by [Bug 1842346], so I close it.
Complain, if the current cvs does not solve the issue.