Skip to content

Commit 8b53913

Browse files
committed
fix: 차트 윈도우에서 앱 사용량이 많으면 잘리는 문제 해결
세로 사이즈가 700으로 고정되어있던 거심.. 그리드에서 * 빼고 auto로 넣고 윈도 속성에 SizeToContent="Height" 해서 해결
1 parent 8ddfb17 commit 8b53913

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

FocusTimer/Features/Charting/ChartWindow.xaml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
<local:ChartViewModelWindow x:Class="FocusTimer.Features.Charting.ChartWindow"
2-
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3-
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4-
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5-
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6-
xmlns:local="clr-namespace:FocusTimer.Features.Charting"
7-
xmlns:lvc="clr-namespace:LiveChartsCore.SkiaSharpView.WPF;assembly=LiveChartsCore.SkiaSharpView.WPF"
8-
xmlns:usages="clr-namespace:FocusTimer.Features.Charting.Usages"
9-
xmlns:metric="clr-namespace:FocusTimer.Features.Charting.Metric"
10-
xmlns:resources="clr-namespace:FocusTimer.Resources"
11-
mc:Ignorable="d"
12-
d:DataContext="{d:DesignInstance Type=local:ChartViewModel}"
13-
Title="Chart"
14-
Height="700"
15-
Width="1000"
16-
ResizeMode="NoResize"
17-
AllowsTransparency="True"
18-
WindowStyle="None"
19-
Background="{StaticResource Window.Background}">
2+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
3+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
4+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
5+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
6+
xmlns:local="clr-namespace:FocusTimer.Features.Charting"
7+
xmlns:lvc="clr-namespace:LiveChartsCore.SkiaSharpView.WPF;assembly=LiveChartsCore.SkiaSharpView.WPF"
8+
xmlns:usages="clr-namespace:FocusTimer.Features.Charting.Usages"
9+
xmlns:metric="clr-namespace:FocusTimer.Features.Charting.Metric"
10+
xmlns:resources="clr-namespace:FocusTimer.Resources"
11+
mc:Ignorable="d"
12+
d:DataContext="{d:DesignInstance Type=local:ChartViewModel}"
13+
Title="Chart"
14+
SizeToContent="Height"
15+
Width="1000"
16+
ResizeMode="NoResize"
17+
AllowsTransparency="True"
18+
WindowStyle="None"
19+
Background="{StaticResource Window.Background}">
2020

2121
<Window.Resources>
2222
<Style x:Key="TitleBarButtonStyle"
@@ -118,10 +118,10 @@
118118
<Grid.RowDefinitions>
119119
<RowDefinition Height="auto" />
120120
<RowDefinition Height="auto" />
121-
<RowDefinition Height="1.2*" />
122-
<RowDefinition Height="2*" />
121+
<RowDefinition Height="180" />
122+
<RowDefinition Height="300" />
123+
<RowDefinition Height="auto" />
123124
<RowDefinition Height="auto" />
124-
<RowDefinition Height="2*" />
125125
</Grid.RowDefinitions>
126126

127127
<Grid Grid.Row="0">
@@ -222,4 +222,4 @@
222222
</ItemsControl>
223223
</Grid>
224224
</Border>
225-
</local:ChartViewModelWindow>
225+
</local:ChartViewModelWindow>

0 commit comments

Comments
 (0)