File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
csv-validator-ui/src/main/scala/uk/gov/nationalarchives/csv/validator/ui Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -64,14 +64,14 @@ object CsvValidatorUi extends SimpleSwingApplication {
64
64
65
65
private def changeHeightOfOutputPane (heightDiff : Int ): Unit = {
66
66
// need to normalise the height change by converting it to "rows"
67
- val heightChangeAsRows = Math .ceil(heightDiff / 50f ).toInt // 30 is just an arbitrary number that seemed to work fine
68
- val newHeight = if (( txtArReport.rows + heightChangeAsRows) <= 1 ) txtArReport.rows + 1
69
- else if (( txtArReport.rows + heightChangeAsRows) > 40 ) 40
67
+ val heightChangeAsRows = Math .ceil(heightDiff / 30f ).toInt // 30 is just an arbitrary number that seemed to work fine
68
+ val newHeight = if (txtArReport.rows + heightChangeAsRows <= 1 ) 1
69
+ else if (txtArReport.rows + heightChangeAsRows > 40 ) 40
70
70
else txtArReport.rows + heightChangeAsRows
71
71
72
72
// sometimes the size and preferredSize height stay the same even when the window gets larger so just make box size large in this case
73
73
val finalHeight = if (heightDiff == 0 && ! prefSizeHeightChanged) 40 else newHeight
74
- txtArReport.rows = Math .abs( finalHeight)
74
+ txtArReport.rows = finalHeight
75
75
}
76
76
77
77
def top : SJXFrame = new SJXFrame {
You can’t perform that action at this time.
0 commit comments