Repository navigation
Conversation
The widget position was always derived from the position setting plus the automatic padding (which snaps it next to the native Widgets button), so there was no way to place it at an exact distance from the start of the taskbar. - new "TaskbarWidgetUseCustomLeftMargin" toggle and "TaskbarWidgetLeftMargin" value (0-2000 px, default 20) with a numeric text box - with the position set to "near start" the widget's left edge (top edge on a vertical taskbar) is placed at exactly that distance, ignoring the automatic padding; the existing manual padding still adds an offset on top - the visualizer is moved to the right of the widget when there is not enough room on the left, so a small margin can no longer push it off the taskbar Disabled by default, so nothing changes unless the toggle is turned on.
|
All contributors have signed the CLA ✍️ ✅ |
|
I have read and agree to the FluentFlyout CLA |
unchihugo
left a comment
There was a problem hiding this comment.
Hi @wjingshan, we already have a feature doing exactly what you've described in the PR description. What's the purpose of an additional margin setting?
|
额外增加边距的目的是为了避开在任务栏上的其他插件。有的插件只能贴边放置。如果没有增加额外边距就重叠了。
The purpose of adding margins is to avoid other plugins on the taskbar. Some plugins can only be placed along the edge. If no extra margins are added, the overlap occurs.
…________________________________
发件人: Hugo ***@***.***>
发送时间: 2026年9月15日 3:19
收件人: unchihugo/FluentFlyout ***@***.***>
抄送: choosejin ***@***.***>; Mention ***@***.***>
主题: Re: [unchihugo/FluentFlyout] feat(widget): add a custom left margin for the taskbar widget (PR #1133)
@unchihugo requested changes on this pull request.
Hi @wjingshan<https://github.com/wjingshan>, we already have a feature doing exactly what you've described in the PR description. What's the purpose of an additional margin setting?
―
Reply to this email directly, view it on GitHub<#1133?email_source=notifications&email_token=AFIK7PGNSFNYC6PTJMHWSE35PBAEVA5CNFSNUABKM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UKJSXM2LFO4XTKMRQGE4DKNZXGEZKM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#pullrequestreview-5201857712>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AFIK7PC6S7SCUUMJDOG3FJ35PBAEVAVCNFSNUABFKJSXA33TNF2G64TZHM4DOMRQGE3DOOJYHNEXG43VMU5TKNBTGEYTKNRYGE4KC5QC>.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS<https://github.com/notifications/mobile/ios/AFIK7PH7VXTX4JKA3YOW64L5PBAEVA5CNFSNUABKM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UKJSXM2LFO4XTKMRQGE4DKNZXGEZKM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJKTGN5XXIZLSL5UW64Y> and Android<https://github.com/notifications/mobile/android/AFIK7PGCUDFFOGAS3AFQC635PBAEVA5CNFSNUABKM5UWIORPF5TWS5BNNB2WEL2QOVWGYUTFOF2WK43UKJSXM2LFO4XTKMRQGE4DKNZXGEZKM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI>. Download it today!
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
|
Thanks for taking a look! Let me clarify the difference from the existing Custom spacing (
The new The use case is avoiding other taskbar tools that can only sit flush against the start of the taskbar (e.g. TrafficMonitor): they overlap the widget, and a relative offset cannot reserve space for them reliably. That said, I'm not attached to having a second padding-like setting. If you prefer, I can:
Happy to adjust — just let me know which direction you prefer. And sorry for the email-formatted reply above, that was sent from the mail client and quoted the whole thread. |
Summary
Adds an optional custom left margin so the taskbar widget can be pinned at an exact distance from the start of the taskbar.
Motivation
The widget position is always derived from the position setting plus the automatic padding, which snaps the widget next to the native Widgets/weather button (and falls back to "20 px + visualizer width" when that UI Automation lookup times out). The existing "custom spacing" value is only a relative offset, so there is no way to place the widget at a fixed distance. Related: #718, #1116, #518.
Type of Change
What Changed
TaskbarWidgetUseCustomLeftMargin(default off) andTaskbarWidgetLeftMargin(0–2000 px, default 20) plus a...Textproperty.TaskbarWindow.PositionWidget(): with the position set to "near start" and the toggle on,primaryPosis set to the configured distance (scaled by the taskbar DPI), skipping the automatic padding and the visualizer offset; the existing manual padding is still applied on top.PositionVisualizer(): if the visualizer would be pushed before the start of the taskbar, it is now placed after the widget instead, so a small margin cannot push it off-screen.Dictionary-en-US.xaml.Additional Information
Verified on Windows 11 25H2 (x64, 200% scaling): margin 300 → widget's left edge at exactly 600 physical px; margin 10 → widget at 20 px with the visualizer automatically moved to its right side. The toggle is off by default, so the current behaviour is unchanged.
Checklist
dotnet format --verify-no-changespasses for the touched files).