Running auidemo sample on MSW and changing display scaling is not handled correctly.
Start with 100% display scaling:
aui-start-100.png (view on web)
Start with 100% display scaling then change to 150%:
aui-start-100-change-150.png (view on web)
Start with 100% display scaling then change to 150% and resize any splitter:
aui-start-100-change-150-resize.png (view on web)Start with 150% display scaling:
aui-start-150.png (view on web)
I expect "Start with 100% display scaling then change to 150%" to look identical to "Start with 150% display scaling" and resizing splitters shouldn't affect it.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Executing something like this on DPI change helps a bit, at least in KiCad:
wxAuiPaneInfoArray& panes = m_auimgr.GetAllPanes();
for( wxAuiPaneInfo& pinfo : panes )
{
pinfo.best_size = pinfo.window->GetSize();
// But we still shouldn't make it too small.
pinfo.best_size.IncTo( pinfo.window->GetBestSize() );
pinfo.best_size.IncTo( pinfo.min_size );
}
m_auimgr.Update();Start with 100% display scaling then change to 150%:
Screenshot.2026-01-06.181646.png (view on web)
Still the comboboxes aren't being updated correctly (admittedly some of it might be KiCad enforcing old sizes).
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
This definitely looks wrong, thanks for reporting. I'll try to debug this one too.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Sorry, I won't have time to do it before 3.3.2. If it's really important for you, please let me know and I'll at least move it forward to 3.3.3.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
Sure it's important, DPI handling is a "forever" bug.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
#23411 seems to describe the same problem.
It's even worse if the DPI changes to a smaller value.
Start with 200% DPI scaling then change to 100%:
aui-sample-after-DPI-change-200-to-100.png (view on web)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you are subscribed to this thread.![]()
@dsa-t @taler21 Could you please test #26546? I'm not sure if it fixes all the problems, but it should improve things significantly (and it does fix the bug with choices in the toolbars).
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
Yes, with this PR, the toolbars no longer look broken after changing the DPI. Thanks!
At first glance, I only noticed the following minor detail.
After changing the DPI from 100% to 200%, a 2 pixel wide horizontal gap appears between the toolbars, even though there was no gap at 100%.
aui_toolbar-gap-after-changing-DPI-from-100-to-200.png (view on web)
I don't know if this indicates a problem, or if there is a logical explanation for that.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
The code just multiplies the pane position by the ration of new to old scale (i.e. 2 here), so if the toolbar size doesn't scale linearly, this would explain the bug. I did want to just relayout everything initially to avoid problems like this, but I couldn't find a way to do it without losing the current layout. But this should be possible, of course...
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
I'll merge the PR but won't close this for now as I'd like to know how does it affect KiCad and other applications using AUI in practice. If the current approach results in visible problems there, I'll return to this later.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()