-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[launcher] Location and multi monitor support #2446
[launcher] Location and multi monitor support #2446
Conversation
Remaining fix : Launcher doesn't open first time on changing monitor
@@ -144,6 +146,15 @@ private double WindowLeft() | |||
return left; | |||
} | |||
|
|||
private double WindowTop() |
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.
sorry for commenting out of context, does WindowTop() get the window position, and calculates the Y coordinate using dip1 and dip2? Some comments on the function would be helpful to facilitate a walkthrough of the function :) I will run your branch on my side to test that it launches on the top center of the screen :)
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.
@laviusmotileng-ms Sure! Thanks for suggestion.
@somil55 Can we put this in dev/build-feature. This branch should only be used for any last minute demo updates. |
@somil55 , but on the plus side its not moving ;) |
@ryanbodrug-microsoft Is it the case with every launch or just the first launch on your second monitor ? |
This reverts commit 38f3992.
@somil55 This looks better. A couple things I've noticied.
I think items 1 & 3 can be captured in seperate issues and triaged. Can you just verify that the first issue wasn't introduced in this PR? |
@ryanbodrug-microsoft I was waiting for changes from dev/PowerLauncher to be integrated into build-features branch. I will update this PR. Regrading 3, I haven't worked on it in this PR. I will create a issue for this. And can you provide some more context on 1 ? I wasn't noticing this issue or I might be misunderstanding this. |
@alekhyareddy28 There is some lag when the XAML host components are resized. This issue is evident when you show/hide searchbox. I will file an issue for this UI behaviour. |
@ryanbodrug-microsoft Regarding comment #1 I verified that it is a preexisting issue on current |
i think this has a subset of issues that this doesn't always solve. All dealing with DPI. My suggestion i think we should close this PR, create POC that mimics without islands, and make sure it is DPI aware. this will allow us to then rapidly iterate |
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.
This isn't quite perfect yet, but is a definite improvement. Lets get this PR in and make sure there are tasks for.
- Switching monitors, and opening brings the launcher up off center.
- Loading the xaml island on resize causes a flicker.
- When the user manually positions the launcher it doesn't rememeber the position on consecutive launches.
Summary of the Pull Request
Added code to position launcher in upper center of the screen and handle display in a multi monitor setting.
PR Checklist
Validation Steps Performed