Changeset 10987 for branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/PreprocessingChartView.cs
- Timestamp:
- 06/11/14 14:23:19 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing.Views/3.4/PreprocessingChartView.cs
r10972 r10987 49 49 private const string DEFAULT_CHART_TITLE = "Chart"; 50 50 private const int FIXED_CHART_SIZE = 300; 51 private const int MAX_TABLE_ ROWS = 3;51 private const int MAX_TABLE_AUTO_SIZE_ROWS = 3; 52 52 53 53 public IEnumerable<double> Classification { get; set; } … … 328 328 int columns = GetNrOfMultiChartColumns(checkedItemsCnt); 329 329 int rows = GetNrOfMultiChartRows(checkedItemsCnt, columns); 330 tableLayoutPanel.VerticalScroll.Enabled = true; 330 331 331 332 tableLayoutPanel.ColumnCount = columns; … … 335 336 for (int x = 0; x < columns; x++) { 336 337 337 if (rows <= MAX_TABLE_ ROWS)338 if (rows <= MAX_TABLE_AUTO_SIZE_ROWS) 338 339 tableLayoutPanel.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100 / columns)); 339 340 else … … 344 345 if (x == 0) { 345 346 // fixed chart size when there are more than 3 tables 346 if (rows > MAX_TABLE_ ROWS)347 if (rows > MAX_TABLE_AUTO_SIZE_ROWS) 347 348 tableLayoutPanel.RowStyles.Add(new RowStyle(SizeType.Absolute, FIXED_CHART_SIZE)); 348 349 else
Note: See TracChangeset
for help on using the changeset viewer.