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

Layout and scale problem on HighDPI displays #113

Closed
jry2 opened this Issue Feb 13, 2016 · 2 comments

Comments

Projects
None yet
3 participants
@jry2

jry2 commented Feb 13, 2016

Probably related to closed #71

I can reproduce this problem on Windows 7 and Windows 10 with latest MDE 1.23 when I use 150% or 200% DPI for Windows desktop. MDE Preview window is up-scaled so right and bottom border (and some content) is clipped. Also content is blurry.

Problem is related to AirspaceDecorator and Microsoft.DwayneNeed.dll library.
Some details:
https://microsoftdwayneneed.codeplex.com/workitem/10930
MahApps/MahApps.Metro#488

I did some quick&dirty hacks and removing <interop:AirspaceDecorator x:Name="PreviewAirspaceDecorator"...> and </interop:AirspaceDecorator> from Preview.xaml and commenting out PreviewAirspaceDecorator.Visibility = state == 1 ? Visibility.Collapsed : Visibility.Visible; in UpdateEditorPreviewVisibility() works for me.

I also compiled fixed fork of AirspaceDecorator from https://github.com/barbeque/DwayneNeed mentioned at http://nondisplayable.ca/2015/05/29/mahapps-metro-gotchas.html and it works for me too, without any changes to MDE source code (just replace these two DLLs with fixed version). I used only patches from RedirectedHwndHost.cs and RedirectedWindow.cs files, all other source files were from https://microsoftdwayneneed.codeplex.com/SourceControl/latest

Please see attached screenshots. Note: these two controls above WebControl and margins around are there just for my tests.

I hope it will help to solve this issue. MDE looks great btw!

test
problem
fix

@mike-ward

This comment has been minimized.

Show comment
Hide comment
@mike-ward

mike-ward Feb 14, 2016

Owner

Nice work! Really appreciate your efforts. I will happily add the new DLL's to the distribution.

Owner

mike-ward commented Feb 14, 2016

Nice work! Really appreciate your efforts. I will happily add the new DLL's to the distribution.

@schemacrawler

This comment has been minimized.

Show comment
Hide comment
@schemacrawler

schemacrawler Mar 9, 2016

Finally! Thank you!

schemacrawler commented Mar 9, 2016

Finally! Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment