diff --git a/StructureHelper/Windows/CalculationWindows/ProgressViews/TraceDocumentVM.cs b/StructureHelper/Windows/CalculationWindows/ProgressViews/TraceDocumentVM.cs index cc5339f..8d6af9e 100644 --- a/StructureHelper/Windows/CalculationWindows/ProgressViews/TraceDocumentVM.cs +++ b/StructureHelper/Windows/CalculationWindows/ProgressViews/TraceDocumentVM.cs @@ -157,13 +157,19 @@ namespace StructureHelper.Windows.CalculationWindows.ProgressViews { const int columnWidth = 150; var rows = tableEntry.Table.GetAllRows(); - int rowCount = rows.Count(); int columnCount = tableEntry.Table.RowSize; var table = new Table(); for (int x = 0; x < columnCount; x++) { var tableColumn = new TableColumn(); - tableColumn.Width = new GridLength(columnWidth); + if (tableEntry.ColumnWidth[x] > 0d) + { + tableColumn.Width = new GridLength(tableEntry.ColumnWidth[x]); + } + else + { + tableColumn.Width = new GridLength(columnWidth); + } table.Columns.Add(tableColumn); } foreach (var row in rows) diff --git a/StructureHelper/Windows/CalculationWindows/ProgressViews/TraceDocumentView.xaml b/StructureHelper/Windows/CalculationWindows/ProgressViews/TraceDocumentView.xaml index 0b6a3ac..c4a6062 100644 --- a/StructureHelper/Windows/CalculationWindows/ProgressViews/TraceDocumentView.xaml +++ b/StructureHelper/Windows/CalculationWindows/ProgressViews/TraceDocumentView.xaml @@ -7,7 +7,7 @@ xmlns:uc="clr-namespace:StructureHelper.Windows.UserControls" d:DataContext="{d:DesignInstance local:TraceDocumentVM}" mc:Ignorable="d" - Title="Trace Document Viewer" Height="600" Width="800" MinHeight="400" MinWidth="600" WindowStartupLocation="CenterScreen"> + Title="Document Viewer" Height="600" Width="800" MinHeight="400" MinWidth="600" WindowStartupLocation="CenterScreen"> diff --git a/StructureHelper/Windows/MainWindow/CrossSectionView.xaml b/StructureHelper/Windows/MainWindow/CrossSectionView.xaml index 4abe78a..ddc19de 100644 --- a/StructureHelper/Windows/MainWindow/CrossSectionView.xaml +++ b/StructureHelper/Windows/MainWindow/CrossSectionView.xaml @@ -103,36 +103,6 @@ - + + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - -