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 {
6464
6565 private def changeHeightOfOutputPane (heightDiff : Int ): Unit = {
6666 // 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
7070 else txtArReport.rows + heightChangeAsRows
7171
7272 // sometimes the size and preferredSize height stay the same even when the window gets larger so just make box size large in this case
7373 val finalHeight = if (heightDiff == 0 && ! prefSizeHeightChanged) 40 else newHeight
74- txtArReport.rows = Math .abs( finalHeight)
74+ txtArReport.rows = finalHeight
7575 }
7676
7777 def top : SJXFrame = new SJXFrame {
You can’t perform that action at this time.
0 commit comments