Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit 5370c4d

Browse files
peterbarancekPTKu
andauthored
*fix scrolling issue in ComponentServiceView (#565)
Co-authored-by: Peter Kurhajec <61538034+PTKu@users.noreply.github.com>
1 parent 3219e88 commit 5370c4d

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

src/TcoCore/src/TcoCore.Wpf/TcoComponent/TcoComponentServiceView.xaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@
5959
</Grid>
6060
</Expander.Header>
6161
<Grid>
62-
<Grid.RowDefinitions>
62+
<Grid.RowDefinitions>
6363
<RowDefinition Height="Auto"/>
64-
<RowDefinition MaxHeight="250"/>
64+
<RowDefinition />
6565
</Grid.RowDefinitions>
6666
<ItemsControl ItemsPanel="{StaticResource HorizontalWraped}" HorizontalAlignment="Right" ItemsSource="{Binding Tasks}">
6767

@@ -72,12 +72,9 @@
7272
</ItemsControl.ItemTemplate>
7373
</ItemsControl>
7474
<Expander Grid.Row="1" Header="Details">
75-
<Grid>
76-
<Grid.ColumnDefinitions>
77-
<ColumnDefinition></ColumnDefinition>
78-
</Grid.ColumnDefinitions>
79-
<tcocorelocal:DynamicTreeView DataContext="{Binding}" MaxHeight="250"></tcocorelocal:DynamicTreeView>
80-
</Grid>
75+
<ScrollViewer MaxHeight="300">
76+
<tcocorelocal:DynamicTreeView DataContext="{Binding}" ></tcocorelocal:DynamicTreeView>
77+
</ScrollViewer>
8178
</Expander>
8279
</Grid>
8380
</Expander>

src/TcoCore/tests/TcoCore.Sandbox.Wpf/MainWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
<vortex:SwiftRecorderView x:Name="swiftRecorder"></vortex:SwiftRecorderView>
160160
</TabItem>
161161
<TabItem Header="Object tree viewer">
162-
<ScrollViewer>
162+
<ScrollViewer MaxHeight="500">
163163
<UniformGrid>
164164
<vortex:DynamicTreeView x:Name="DynamicTree" DataContext="{Binding MAIN, Mode=OneWay}" />
165165

0 commit comments

Comments
 (0)