Changeset 15210 for trunk/sources/HeuristicLab.DataPreprocessing.Views/3.4/PreprocessingChartView.cs
- Timestamp:
- 07/12/17 15:45:31 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DataPreprocessing.Views/3.4/PreprocessingChartView.cs
r15110 r15210 51 51 dataTables = new Dictionary<string, DataTable>(); 52 52 dataTableViews = new Dictionary<string, DataTableView>(); 53 scrollPanel.HorizontalScroll.Visible = false; 53 54 } 54 55 … … 203 204 GenerateLayout(); 204 205 } 206 207 private void splitContainer_Panel2_Resize(object sender, EventArgs e) { 208 if (SuppressCheckedChangedUpdate) 209 return; 210 211 scrollPanel.SuspendRepaint(); 212 213 if (tableLayoutPanel.ColumnCount > 0 && tableLayoutPanel.RowCount > 0) { 214 var width = (splitContainer.Panel2.Width - SystemInformation.VerticalScrollBarWidth) / tableLayoutPanel.ColumnCount; 215 var height = width * 0.75f; 216 217 for (int i = 0; i < tableLayoutPanel.RowStyles.Count - 1; i++) { 218 tableLayoutPanel.RowStyles[i].Height = height; 219 } 220 for (int i = 0; i < tableLayoutPanel.ColumnStyles.Count; i++) { 221 tableLayoutPanel.ColumnStyles[i].Width = width; 222 } 223 } 224 225 scrollPanel.ResumeRepaint(true); 226 } 205 227 } 206 228 }
Note: See TracChangeset
for help on using the changeset viewer.