| 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]>
|