guberm / tortoisegit

Automatically exported from code.google.com/p/tortoisegit
0 stars 0 forks source link

Ignore file DPI scaling problem #2515

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use windows DPI scaling 200% (common on 4k monitors)
2. Go to the commit dialog 
3. Right click a 'unknown' status file -> add to ignore list

What is the expected output? What do you see instead?
Expected: 
A window containing the normal buttons and info.
Instead: 
A non resizeable window showing only a partial UI and most importantly the 
buttons are not visible).

What version of TortoiseGit and msysgit are you using? On
what operating system?
TortoiseGit 1.8.14
Windows 8.1 x64

Please provide any additional information below.

Original issue reported on code.google.com by rene.thr...@manabattery.com on 1 Jun 2015 at 9:20

Attachments:

GoogleCodeExporter commented 9 years ago
Run regedit

Go to HKEY_CURRENT_USER\Software\TortoiseGit\TortoiseProc\ResizableState

Delete IgnoreDlgWindowPlacement

Original comment by ch3co...@gmail.com on 1 Jun 2015 at 2:25

GoogleCodeExporter commented 9 years ago
Should we enhance CStateStandAloneDialog to only restore the size of a dialog 
if it's resizable (and also to include a version number which we can increase 
everytime we adjust a dialog default size)?

Original comment by sstrickr...@googlemail.com on 2 Jun 2015 at 5:43

GoogleCodeExporter commented 9 years ago
Make TortoiseGit DPI-aware?

Have a look at "Supporting Dynamic DPI Changes" of following link.
Writing DPI-Aware Desktop and Win32 Applications
https://msdn.microsoft.com/en-us/library/windows/desktop/dn469266(v=vs.85).aspx

Tutorial: Writing High-DPI Win32 Applications
https://msdn.microsoft.com/en-us/library/windows/desktop/dd464659(v=vs.85).aspx

Perhaps we don't need the version number this way.

@ch3cooli
BTW, I CAN NOT find IgnoreDlgWindowPlacement in source code? where is it?

Original comment by yuelinho...@gmail.com on 3 Jun 2015 at 1:37

GoogleCodeExporter commented 9 years ago
Is it a good way to clear "Dialog sizes and positions" in Settings/Saved Data?
(Remove the whole ResizableState reg key)

Original comment by yuelinho...@gmail.com on 3 Jun 2015 at 1:52

GoogleCodeExporter commented 9 years ago
@ch3cooli

> I CAN NOT find IgnoreDlgWindowPlacement in source code? where is it?

I found PLACEMENT_ENT ("WindowPlacement").
IgnoreDlgWindowPlacement = IgnoreDlg + WindowPlacement

Original comment by yuelinho...@gmail.com on 3 Jun 2015 at 1:56

GoogleCodeExporter commented 9 years ago
Should be fixed by 9d9617bd45f8cc2b95d1562c8886cc1103894a29

Original comment by sstrickr...@googlemail.com on 6 Jun 2015 at 10:14