Issue with TWebMainmenu container property

Hello,

I have made a test for the container property of TWebMainMenu component:

I put a Webpanel1 aligned at Top, and set webpanel1 as the Twebmainmenu's container and it works. And displaying of mainmenu is fine(see below picture).

94f266592f3eb01e6bc7cbf4eb68b7d9/views/imgo]

However, I then out an another webpanel2 and set Webpanel1 as its parent, aligning to right of the webpanel1. There will be issue of displaying the mainmenu, as you can see from below screenshot:

Lower part of the mainmenu was covered, thus menu cannot be displayed completely.

For your reference, here is the test file : 61. mainmenu.zip (1.4 MB)

Thanks,

Hi,

Please note that by default a TWebPanel will clip it's content.
As a workaround to disable this you can set the overflow attribute to visible.

Example:

procedure TForm1.WebFormCreate(Sender: TObject);
begin
WebPanel1.ElementHandle.style.setProperty('overflow', 'visible');
end;

We'll have to investigate if this behaviour can be improved in a future version.