Project

General

Profile

Bug #2350

WPopupMenu not visible after update to 3.3.1

Added by Florian Ransmayr about 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
High
Assignee:
Target version:
Start date:
10/21/2013
Due date:
% Done:

0%

Estimated time:

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

TreeViewDragDrop.C (18.3 KB) TreeViewDragDrop.C Florian Ransmayr, 10/21/2013 04:59 PM
#1

Updated by Koen Deforche about 8 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

#2

Updated by Florian Ransmayr about 8 years ago

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

#3

Updated by Michael Knopke about 8 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

#4

Updated by Koen Deforche about 8 years ago

  • Status changed from Feedback to InProgress
  • Assignee set to Koen Deforche
#5

Updated by Koen Deforche about 8 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

#6

Updated by Koen Deforche almost 8 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF