Skip to content

Commit 6608735

Browse files
committed
Fixed color window going out of screen when hitting its bottom on monitors that use higher than 100% of scaling. Increased version.
1 parent 02ceb5a commit 6608735

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

ColorPicker.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
<package>
33
<metadata>
44
<id>ColorPicker</id>
5-
<version>1.0.0</version>
5+
<version>1.0.1</version>
66
<authors>Martin Chrzan</authors>
77
<owners>Martin Chrzan</owners>
88
<licenseUrl>https://github.com/martinchrzan/ColorPicker/blob/master/LICENSE</licenseUrl>
99
<projectUrl>http://github.com/martinchrzan/ColorPicker</projectUrl>
1010
<!--<iconUrl></iconUrl>-->
1111
<releaseNotes>
12-
The first version
12+
Fixed color window going out of screen when hitting its bottom on monitors that use higher than 100% of scaling.
1313
</releaseNotes>
1414
<requireLicenseAcceptance>false</requireLicenseAcceptance>
1515
<description>Color Picker</description>

ColorPicker/Behaviors/ChangeWindowPositionBehavior.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ private void SetWindowPosition(Point mousePosition)
6161
windowLeft -= MonitorRightSideDeadZone - ((int)monitorBounds.Right - windowLeft);
6262
}
6363

64-
if ((windowTop + MonitorBottomSideDeadZone) > monitorBounds.Bottom)
64+
if ((windowTop + MonitorBottomSideDeadZone / dpi.DpiScaleX) > monitorBounds.Bottom / dpi.DpiScaleX)
6565
{
66-
windowTop -= MonitorBottomSideDeadZone - (((int)monitorBounds.Bottom - windowTop));
66+
windowTop -= MonitorBottomSideDeadZone / dpi.DpiScaleX - (((int)monitorBounds.Bottom / dpi.DpiScaleX - windowTop));
6767
}
6868

6969
AssociatedObject.Left = windowLeft;

ColorPicker/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@
5050
// You can specify all the values or you can default the Build and Revision Numbers
5151
// by using the '*' as shown below:
5252
// [assembly: AssemblyVersion("1.0.*")]
53-
[assembly: AssemblyVersion("1.0.0.0")]
54-
[assembly: AssemblyFileVersion("1.0.0.0")]
53+
[assembly: AssemblyVersion("1.0.1.0")]
54+
[assembly: AssemblyFileVersion("1.0.1.0")]
5555
[assembly: AssemblyMetadata("SquirrelAwareVersion", "1")]

0 commit comments

Comments
 (0)