Menu

#2902 tk_popup incorrectly placement on Windows

obsolete: 8.5.9
closed-duplicate
5
2011-05-26
2011-05-20
No

I have encountered an issue propably similar to closed bug 2548722.

<Code>
pack [ttk::menubutton .t -text abc -direction right]
menu .t.s -tearoff 0
for {set m 0} {$m < 20} {incr m} {
.t.s add command -label m$m
}
.t configure -menu .t.s
</Code>
Environment:
Wish 8.5.9 on Windows Vista with screen size: 1600x1024
Reproduce:
When I place the wish window at the lower border of the screen and press the button, the menu appears in the center of the screen (in y axis) far away from the menubutton.

When I trace the called functions and do it manually, I get the same effect.
% ttk::menubutton::PostPosition
95 1005
% tk_popup .t.s 95 1005

So, there seams to be an issue of the "post menu above anchor point".

Thank you,
Harald

Discussion

  • Pat Thoyts

    Pat Thoyts - 2011-05-26
    • status: open --> closed-duplicate
     
  • Pat Thoyts

    Pat Thoyts - 2011-05-26

    While correct, this is in fact a duplicate of 3306909 which has a more significant explanation.