-
-
Notifications
You must be signed in to change notification settings - Fork 442
Center the window vertically when settings = Center #4019
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
@check-spelling-bot Report🔴 Please reviewSee the 📂 files view, the 📜action log, or 📝 job summary for details.
See ❌ Event descriptions for more information. Forbidden patterns 🙅 (1)In order to address this, you could change the content to not match the forbidden patterns (comments before forbidden patterns may help explain why they're forbidden), add patterns for acceptable instances, or adjust the forbidden patterns themselves. These forbidden patterns matched content: s.b. workaround(s)
If the flagged items are 🤯 false positivesIf items relate to a ...
|
🥷 Code experts: Jack251970, onesounds Jack251970, onesounds have most 👩💻 activity in the files. See details
Activity based on git-commit:
Knowledge based on git-blame: ✨ Comment |
Be a legend 🏆 by adding a before and after screenshot of the changes you made, especially if they are around UI/UX. |
📝 WalkthroughWalkthroughAdjusted the VerticalCenter calculation in MainWindow.xaml.cs to base vertical centering on the window’s ActualHeight instead of QueryTextBox.ActualHeight, changing the factor from quarter to half to compute the top position. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🪛 GitHub Actions: Check SpellingFlow.Launcher/MainWindow.xaml.cs[warning] 115-115: Unrecognized spelling: 'Wnd'. [warning] 372-372: Unrecognized spelling: 'Wnd'. [warning] 585-585: Unrecognized spelling: 'Wnd'. [warning] 587-587: Unrecognized spelling: 'Wnd'. [warning] 774-774: Unrecognized spelling: 'gamemode'. [warning] 775-775: Unrecognized spelling: 'gamemode'. [warning] 778-778: Unrecognized spelling: 'gamemode'. [warning] 781-781: Unrecognized spelling: 'positionreset'. [warning] 784-784: Unrecognized spelling: 'positionreset'. [warning] 800-800: Unrecognized spelling: 'gamemode'. [warning] 801-801: Unrecognized spelling: 'positionreset'. [warning] 806-806: Unrecognized spelling: 'positionreset'. [warning] 924-924: Unrecognized spelling: 'XRatio'. [warning] 925-925: Unrecognized spelling: 'YRatio'. [warning] 1139-1139: Unrecognized spelling: 'clocksb'. [warning] 1140-1140: Unrecognized spelling: 'clocksb'. [warning] 1141-1141: Unrecognized spelling: 'iconsb'. [warning] 1142-1142: Unrecognized spelling: 'iconsb'. [warning] 1147-1147: Unrecognized spelling: 'clocksb'. [warning] 1148-1148: Unrecognized spelling: 'iconsb'. [warning] 67-67: Unrecognized spelling: 'Wnd'. [warning] 231-231: Unrecognized spelling: 'activing'. [warning] 277-277: Unrecognized spelling: 'gamemode'. [warning] 414-414: Unrecognized spelling: 'mainwindow'. [warning] 502-502: Unrecognized spelling: 'Arrowkeys'. [warning] 780-780: Unrecognized spelling: 'positionreset'. [error] 821-821: work around matches a line_forbidden.patterns entry: \bwork[- ]arounds?\b (forbidden-pattern) ⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are two bugs here:
- When window is shown at the first time. Its position is weird.
- When ActualHeight is changed, its position is not updated. And the next time you open the main window, it will stay in the same position as origin. (In demo video, I disabled Home Page feature to change the ActualHeight of main window when query is empty)
Demo video:
2025-09-27.12-54-49.mp4
Please do not change it this way. If we really vertically center it when we have 9 results, the bottom ones may be out of the screen. We can create a new option that really centers, but please do not change this one. |
That is not the result - it centers on Please clarify then I can address issues that @Jack251970 raises. |
Well my suggestion is don't change the behavior of the current Center option. Created a new one maybe better for user experience. |
I agree. Please do not change the behaviour of this option. |
Closes #3917