WebDropDown DropDown position

Hello,

I created a new web project and dropped a WebPanel (WebPanel1) on the form with large size (smaller than form itself).

Placed another WebPanel (WebPanel2) on WebPanel1 and sized it to just contain a button.

Dropped a WebButton in WebPanel2.

Dropped a WebDropDown Component on WebPanel1 and set its control property to WebPanel2

Set Windows scaling factor other than 100% and run the project.

When WebDropdown is clicked WebPanel2 is opened at top 0 and left 0 position (top left of the browser window).

When Windows scaling is set to 100% it works as expected.

Any suggestions ?

Best regards.

I tested this here with 100%, 150%, 200% and I cannot see a difference in behavior.

This is on 150% for example:

Is this the latest version of TMS WEB Core you use?

I am using TMS WEB Core for RAD Studio 11 v2.7.1.0

Just upgraded WEB code to 2.7.2.0 and the result is the same for me.
However switching the scale while the application is executing in the browser does not show the problem. If you run the application with 100% and then change the scale to 150% (other than 100%) and refresh the browser so that application restarts, the problem will show if drop down is activated. You can see this in the screen shot.

Ekran görüntüsü 2025-02-08 184900

TMSFNCControlPicker behaves correctly in the same scenario.

You can also observe this condition If you run the app while scaling is 150%

I tested this on two machines and I cannot reproduce this.
Also, it is not clear whether you refer here to browser scaling or machine display scaling.
I tested it with
100% DPI : 100% browser scale
100% DPI : 150% browser scale
150% DPI : 100% browser scale
150% DPI : 150% browser scale
each time with restarting the web app and in none of these scenarios, I could reproduce a problem.

In my original message I mentioned windows scaling. I should have been more explicit.

Web Browser scaling has no effect. I could record a video and upload it if you wish.

It seems the behaviour varies under different conditions. Here is one that consistently behaves the same:

set windows screen resolution as 1900 x 1200 and scaling at 100%.
Create a web project at this resolution and scaling.
drop a WebDropDownComponent
drop a webpanel and a button in it
set dropdowncontrol control property to webpanel and compile the project.

To test the effect find the exe in the win32 folder and run. After each run close the web browser. At windows scale 100%. It looks good. It looks good on every windows scale except 175%. The panel is put on top of the dropdown at this scaling .

I am hoping that you can recreate the problem.


Even when following these steps, we cannot reproduce this here.