-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Wrong window maximize on two monitor systems. #2832
Comments
@chuuddo your screenshots seems to be the same? Damn, maybe I fixed to much... |
@punker76 look at ActualHeight on screenshots. If maximized right it should be 1080-TaskbarHeight on FullHD resolution. Code of window on screenshots. <controls:MetroWindow x:Class="MahappsTest.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:controls="http://metro.mahapps.com/winfx/xaml/controls"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:MahappsTest"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="MainWindow"
Width="525"
Height="350"
WindowStartupLocation="CenterScreen"
mc:Ignorable="d">
<Grid>
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid Grid.Row="0" VerticalAlignment="Bottom">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding ActualWidth, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type controls:MetroWindow}}}" />
<TextBlock Text="x" />
<TextBlock Text="{Binding ActualHeight, Mode=OneWay, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type controls:MetroWindow}}}" />
</StackPanel>
</Grid>
<StatusBar Grid.Row="1" Height="70" />
</Grid>
</controls:MetroWindow> |
@chuuddo OK, but in both screenshots the maximization is wrong... |
@punker76 dont understand why maximization is wrong on both sreenshots. |
@chuuddo Can you try this one? I think I optimized to much in last release 😁 |
@punker76 it works fine, like in 1.4.1! |
@chuuddo Thx for clarifying the problem and testing! |
When will you release 1.4.3 ? This happens on systems with 1 Monitor too. I dont want to go back to 1.4.1 😄 |
@BornToBeRoot this evening (de) |
What steps will reproduce this issue?
I have two monitors and after update from v1.4.1 to v1.4.2 window maximizing start ignore taskbar with z-order behind tasbar (see screenshots). On one monitor systems this issue not reproduced.
v.1.4.1 two monitors maximized window.
v.1.4.2 two monitors maximized window.
Expected outcome
Window maximizing should work same on any number of monitors
--
Environment
The text was updated successfully, but these errors were encountered: