Skip to content

Commit f5e12a0

Browse files
author
Sébastien Geiser
committed
MaxHeight MinHeigth
1 parent eb20e8d commit f5e12a0

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

RegexDialog/RegExToolDialog.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@
508508
<Grid.RowDefinitions>
509509
<RowDefinition x:Name="RegexLanguageElementFirstRow" Height="*" MinHeight="50" />
510510
<RowDefinition Height="5" />
511-
<RowDefinition Height="0.1*" MinHeight="30"/>
511+
<RowDefinition Height="0.1*" MinHeight="20"/>
512512
</Grid.RowDefinitions>
513513
<TreeView Name="RegexLanguagesElementsTreeView"
514514
SelectedItemChanged="RegexLanguagesElementsTreeView_SelectedItemChanged">
@@ -547,7 +547,7 @@
547547
<Grid.RowDefinitions>
548548
<RowDefinition x:Name="ReplaceLanguageElementFirstRow" Height="*" MinHeight="50" />
549549
<RowDefinition Height="5" />
550-
<RowDefinition Height="0.1*" MinHeight="30" />
550+
<RowDefinition Height="0.1*" MinHeight="20" />
551551
</Grid.RowDefinitions>
552552
<ListView Name="ReplaceLanguageElementsListView" SelectionChanged="ReplaceLanguageElementsListView_SelectionChanged">
553553
<ListView.ItemTemplate>

RegexDialog/RegExToolDialog.xaml.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,12 +1158,6 @@ private void SetMaxSizes()
11581158
try
11591159
{
11601160
RegexEditorRow.MaxHeight = Root.ActualHeight - RegexEditor.TransformToAncestor(Root).Transform(new Point(0, 0)).Y - 5 - 10;
1161-
if (OptionTabControl.SelectedItem.Equals(RegexTabItem))
1162-
RegexLanguageElementFirstRow.MaxHeight = Root.ActualHeight - RegexLanguagesElementsTreeView.TransformToAncestor(Root).Transform(new Point(0, 0)).Y - 5 - 40;
1163-
if (OptionTabControl.SelectedItem.Equals(ReplaceTabItem))
1164-
ReplaceLanguageElementFirstRow.MaxHeight = Root.ActualHeight - ReplaceLanguageElementsListView.TransformToAncestor(Root).Transform(new Point(0, 0)).Y - 5 - 40;
1165-
//FirstColumn.MaxWidth = Math.Max(Root.ActualWidth - 10 - 100, 0);
1166-
//SecondColumn.MaxWidth = Math.Max(Root.ActualWidth - Math.Min(FirstColumn.ActualWidth, Root.ActualWidth) - 10 - 40, 0);
11671161
}
11681162
catch { }
11691163
}

0 commit comments

Comments
 (0)