-
Notifications
You must be signed in to change notification settings - Fork 802
Open
Labels
area-TitleBarIssues related to custom window title bars.Issues related to custom window title bars.bugSomething isn't workingSomething isn't workingteam-ControlsIssue for the Controls teamIssue for the Controls team
Description
Describe the bug
The titlebar control does not take the scale factor into account when calculating the widths of the columns used for padding, resulting in incorrect positioning of elements.
Steps to reproduce the bug
The code here:
microsoft-ui-xaml/src/controls/dev/TitleBar/TitleBar.cpp
Lines 400 to 411 in 689477e
| if (const auto rightColumn = m_rightPaddingColumn.get()) | |
| { | |
| const auto rightColumnInset = | |
| FlowDirection() == winrt::FlowDirection::LeftToRight ? | |
| appTitleBar.RightInset() : | |
| appTitleBar.LeftInset(); | |
| TITLEBAR_TRACE_VERBOSE_DBG(*this, TRACE_MSG_METH_STR_INT, METH_NAME, this, | |
| L"RightColumn width:", | |
| rightColumnInset); | |
| rightColumn.Width(winrt::GridLengthHelper::FromPixels(rightColumnInset)); |
needs to take the scale factor into account by dividing rightColumnInset (value in physical pixels) by the scale factor.
Expected behavior
No response
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.7 Preview 1: 1.7.250208002-preview1
Windows version
Windows 11 (24H2): Build 26100
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area-TitleBarIssues related to custom window title bars.Issues related to custom window title bars.bugSomething isn't workingSomething isn't workingteam-ControlsIssue for the Controls teamIssue for the Controls team
Type
Projects
Status
Ready