Bug #2350
closedWPopupMenu not visible after update to 3.3.1
0%
Description
I use a WpopupMenu to show a context (right click) menu.
This was working fine all the time. After just exchanging the libraries to the new 3.3.1 version, recompiling everything, emptying the cache and restarting the application, the context menu stopped appearing on the screen.
Maybe you have any idea about that issue. Please tell me if you need more information.
Files
Updated by Koen Deforche about 11 years ago
- Status changed from New to Feedback
- Target version set to 3.3.1
Hey Florian,
I have no idea about this. Can you isolate this in a test case?
(the treeview-dragdrop example does something along these lines, still correctly in 3.3.1?)
Regards,
koen
Updated by Florian Ransmayr about 11 years ago
- File TreeViewDragDrop.C TreeViewDragDrop.C added
Hi Koen,
I checked the treeview-dragdrop example and this is working fine with 3.3.1.
I realized that I create the popup widget inside the constructor of my widget. That seems to work all the time but does not anymore. If you change that in the treeview-dragdrop example the popup widget won't be displayed anymore. Of course I am not sure if this is a strange behavior or if this is a correct behavior but it somehow changes between RC2 and the final version.
For test purpose I changed the TreeViewDragDrop.C (see attachment) file in the example.
Best regards
Florian
Updated by Michael Knopke about 11 years ago
I can confirm the bug. It was introduced with commit 29f7c058f6da5bc7d0e0e481269742df709796d9
If I comment out Ln 46 in WPopupMenu.C: //setPopup(true) it works again...
Regards
Michael
Updated by Koen Deforche about 11 years ago
- Status changed from Feedback to InProgress
- Assignee set to Koen Deforche
Updated by Koen Deforche about 11 years ago
- Status changed from InProgress to Resolved
Hey,
I've found the culprit and have a fix ready (not yet in git), it's an unfortunate use of one flag BIT_GEOMETRY_CHANGED for two different properties in WWebWidget.
As a workaround for 3.3.1 you can call setPopup(false) after creating a WPopupMenu (in the case it is not immediately shown). This is mostly harmless, the setPopup() was added for a (rare) glitch in layouts w.r.t. popupmenu.
Regards,
koen
Updated by Koen Deforche almost 11 years ago
- Status changed from Resolved to Closed