Hi,
I have a slightly odd issue: I don't know if it is a bug or if I am doing something wrong. It can be reproduced as follows.
Create a new TMS Web Application project. Add a TWebSideMenu, a TWebPanel with a TWebLabel, and a TWebPopupMenu with a single menu item. Set WebPanel1 as the "ContentControl" of the first item in the WebSideMenu.
Now add an OnMouseDown event for the panel and an OnClick event for the popup menu item as follows:
procedure TForm1.WebPanel1MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
WebPopupMenu1.Parent := WebPanel1;
WebPopupMenu1.Popup(X, Y);
end;
procedure TForm1.Test1Click(Sender: TObject);
begin
WebLabel1.Caption := FormatDateTime('hh:nn:ss', Now);
end;
So, you click on the first item in the side menu to display the panel. Then, when you click somewhere on the panel it pops up the menu where you clicked and then when you select the popup menu item it puts the current time in the label, just so you know it did something.
This works perfectly when the side menu is expanded or collapsed, but when it is in the popup state (hidden with the hamburger menu) you cannot click the popup menu item - it is blocked by a span with a higher z-index that covers it.
Now, I know what is causing this problem: it is the line where I change the parent of the popup menu to be the panel. If I remove that line then the problem goes away. So, that seems like the fix then, right? Well, no, because it my real, more complicated situation, I create a TWebFrame inside the panel, and that frame has a popup menu, and it has the same problem. It seems that if the popup menu's parent is not the main form, the problem occurs. But only if the side menu is in the popup state.
Thanks!

