Skip to content

Commit 5e9668e

Browse files
committed
fixed scrolling
1 parent bbb3103 commit 5e9668e

File tree

1 file changed

+17
-15
lines changed

1 file changed

+17
-15
lines changed

Rubberduck.Core/UI/Refactorings/ExtractInterface/ExtractInterfaceView.xaml

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -59,35 +59,36 @@
5959
<RowDefinition Height="*" />
6060
<RowDefinition Height="40" />
6161
</Grid.RowDefinitions>
62-
<StackPanel Background="White">
62+
<DockPanel Dock="Top" Background="White">
63+
<StackPanel>
64+
6365
<Label Content="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=ExtractInterface_TitleLabel}" FontWeight="Bold" />
6466
<TextBlock Text="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=ExtractInterface_InstructionLabel}"
6567
Margin="5,0" />
66-
</StackPanel>
67-
<StackPanel Grid.Row="1" Margin="5,0">
68-
<Grid VerticalAlignment="Top" Margin="0,0,5,0">
69-
<Grid.RowDefinitions>
70-
<RowDefinition Height="auto" />
71-
<RowDefinition Height="auto" />
72-
</Grid.RowDefinitions>
68+
</StackPanel>
69+
</DockPanel>
70+
<Grid Grid.Row="1" Margin="5">
71+
<Grid.RowDefinitions>
72+
<RowDefinition Height="Auto" />
73+
<RowDefinition Height="*" />
74+
</Grid.RowDefinitions>
75+
<StackPanel Grid.Row="0">
7376
<Label Content="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=NameLabelText}" />
74-
<TextBox Grid.Row="1"
75-
Margin="5,-2,0,0"
77+
<TextBox Margin="5,-2,0,0"
7678
Height="22"
7779
VerticalAlignment="Top"
7880
VerticalContentAlignment="Center"
7981
Text="{Binding InterfaceName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
80-
<Image Grid.Row="1"
81-
Source="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/cross-circle.png"
82+
<Image Source="pack://application:,,,/Rubberduck.Resources;component/Icons/Fugue/cross-circle.png"
8283
Height="16"
8384
Margin="0,-10,-8,0"
8485
HorizontalAlignment="Right"
8586
VerticalAlignment="Top"
8687
Visibility="{Binding IsValidInterfaceName, Converter={StaticResource BoolToHiddenVisibility}}"/>
87-
</Grid>
88+
</StackPanel>
8889

8990
<GroupBox Header="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=ExtractInterface_MembersGroupBox}"
90-
Margin="5">
91+
Grid.Row="1" Margin="5" Padding="5">
9192
<Grid>
9293
<Grid.ColumnDefinitions>
9394
<ColumnDefinition Width="*" />
@@ -146,7 +147,8 @@
146147
</StackPanel>
147148
</Grid>
148149
</GroupBox>
149-
</StackPanel>
150+
</Grid>
151+
150152
<Grid Grid.Row="2" Background="{x:Static SystemColors.ControlDarkBrush}" Grid.IsSharedSizeScope="True">
151153
<Grid HorizontalAlignment="Right"
152154
Margin="5,0">

0 commit comments

Comments
 (0)