Tk Source Code

View Ticket
Login
Ticket UUID: dc18394b423d906597bded7af4ea9af2cc31f198
Title: Combobox dropdown frozen or visually reduced
Type: Bug Version: Tcl 8.6.9
Submitter: Sveti007 Created on: 2020-08-20 14:19:32
Subsystem: 02. Appearance Assigned To: nobody
Priority: 5 Medium Severity: Important
Status: Open Last Modified: 2020-08-22 06:41:07
Resolution: None Closed By: nobody
    Closed on:
Description:
Hello Tk Developers,

first of all my Desktop is with two monitors, one FullHD on the left and one 4K on the right side.

The bug has to do with the following situation:

1. I have one main window where there is a ttk.Combobox in the menubar.
2. I have another window (subwindow) which includes several ttk.Notebook frames. 

If both windows are at the same monitor the combobox and its content is shown as it should be and it's working fine.

First issue: If I move the subwindow to the 4K monitor and I want to change the selection filter in the combobox on the FullHD monitor the drop-down items cannot be seen.

Second issue: If I switch the mainwindow's and the subwindow's position I get the result that the content of the combobox (on the 4K monitor) is scalled down to the dpi of the FullHD monitor (at least for me it looks so). I even get the situation where the dropdown list pops up at wrong x-coordinates (not within the combobox). The dropdown list pops up next to the combobox root coordinates or far away from them. 

I hope you can verify my discovery, otherwise it would be a pleasure if I could send you some screenshots because it's difficult to describe.
User Comments: chrstphrchvz added on 2020-08-22 06:41:07:

Cc'ing myself for updates (I agree this is a duplicate of [a9ee44102b]).


Sveti007 added on 2020-08-21 12:03:14:
The Tkinter_combobox_dropdownitems_misplaced_2.png screenshot shows also the 2nd issue which is that the content of the dropdown list is rescaled (like changing the font size)

Sveti007 added on 2020-08-21 11:56:34:
(THIS TEXT IS AS ADDITION TO THE SCREENSHOTS ATTACHED)

Hello again. 

Today I'm working from home but on my 2 screen desktop the problem is similar and so I'm sending screenshots from my home desktop. I also have to admit that the problem seems to occur when the screens have different scalling properties. If both screens have 100% as scale setting the dropdown works fine.

On the other hand if I set the screen scale of one monitor to 100 % and the other to 150 percent then the problems begin.

And Thanks for your fast reply!

bll added on 2020-08-20 14:39:46:

See also: a9ee44102b

Tk has a difficult time knowing that it is using a different screen on Windows. And I don't believe it has any way of running two different scaling models.

I've had dropdown lists pop up at the wrong coordinates on a single screen, but that was due to forcing instantiating of the drop-down for the combobox too early.

You can attach screenshots to this ticket.


Attachments: