diff --git a/Packages/lesiontracker/components/lesionLocationDialog/lesionLocationDialog.js b/Packages/lesiontracker/components/lesionLocationDialog/lesionLocationDialog.js index 92b395e12..36ce42d48 100644 --- a/Packages/lesiontracker/components/lesionLocationDialog/lesionLocationDialog.js +++ b/Packages/lesiontracker/components/lesionLocationDialog/lesionLocationDialog.js @@ -48,11 +48,9 @@ function getLesionLocationCallback(measurementData, eventData, doneCallback) { // Fire the doneCallback with the lesion number doneCallback(lesionNumber); - // Get the current value of the select option box - var currentValue = selector.find("option:selected").val(); - // Select the first option for the next time the dialog is opened - selector.val(currentValue); + selector.find("option:first").prop("selected", true); + } // Attach keypress handlers so the user can close with the Enter button diff --git a/Packages/lesiontracker/components/lesionTable/lesionTable.styl b/Packages/lesiontracker/components/lesionTable/lesionTable.styl index 18aec8968..09f3bfc19 100644 --- a/Packages/lesiontracker/components/lesionTable/lesionTable.styl +++ b/Packages/lesiontracker/components/lesionTable/lesionTable.styl @@ -1,12 +1,14 @@ #lesionTableContainer width: 100% height: 16% + position: absolute .lesionTable td, th border: 1px solid white border-collapse: collapse + width: 100px td.lesionNumber, th#thNumber width: 70px @@ -16,17 +18,16 @@ td.target, th#thTarget width: 70px - - td.lesionTableTimepointCell - width: 70px + thead width: 100% + height: 25px display: block tr width: 100% - + th border-bottom-width: 0 font-weight: normal @@ -36,21 +37,15 @@ margin: 0 padding: 5px background-color: #424242 - width: 70px - #thTarget - width: 1% - - #thLocation - text-align: left - width: 15% - - #thSpacer - width: 61% tbody display: block - height: 150px // Seems like this has to be fixed for overflow to work properly! + position: absolute + top: 25px + left: 0 + right: 0 + bottom: 0 overflow: auto width: 100% diff --git a/Packages/lesiontracker/components/lesionTableTimepointHeader/lesionTableTimepointHeader.html b/Packages/lesiontracker/components/lesionTableTimepointHeader/lesionTableTimepointHeader.html index 78e70097f..3d60fa64b 100644 --- a/Packages/lesiontracker/components/lesionTableTimepointHeader/lesionTableTimepointHeader.html +++ b/Packages/lesiontracker/components/lesionTableTimepointHeader/lesionTableTimepointHeader.html @@ -1,3 +1,3 @@ \ No newline at end of file