|
From: <kar...@us...> - 2021-03-19 07:00:59
|
Revision: 18969
http://sourceforge.net/p/dcm4che/svn/18969
Author: karthikeyansan
Date: 2021-03-19 07:00:58 +0000 (Fri, 19 Mar 2021)
Log Message:
-----------
OV-235 - Expand/adjust series pane length dynamically to improve series list visibility when there is no archived studies available for that patient
Modified Paths:
--------------
oviyam/oviyam/trunk/web/Study.jsp
Modified: oviyam/oviyam/trunk/web/Study.jsp
===================================================================
--- oviyam/oviyam/trunk/web/Study.jsp 2021-03-19 06:48:37 UTC (rev 18968)
+++ oviyam/oviyam/trunk/web/Study.jsp 2021-03-19 07:00:58 UTC (rev 18969)
@@ -92,6 +92,22 @@
fetchOtherStudies();
}
}, 2000);
+
+ setTimeout(() => {
+ if ($("#otherStudies").children().length == 1) {
+ $( ".selectedStudy" ).css("max-height","60vh" );
+ } else if ($("#otherStudies").children().length == 2) {
+ $( ".selectedStudy" ).css("max-height", "60vh" );
+ } else if ($("#otherStudies").children().length == 3) {
+ $( ".selectedStudy" ).css("max-height", "56vh" );
+ } else if ($("#otherStudies").children().length == 4) {
+ $( ".selectedStudy" ).css("max-height", "49vh" );
+ } else if ($("#otherStudies").children().length >= 5) {
+ $( ".selectedStudy" ).css("max-height", "46vh" );
+ } else {
+ $( ".selectedStudy" ).css("max-height", "74vh" );
+ }
+ }, 3000);
}); //document.ready
$(document).mouseup(function(e) {
@@ -315,6 +331,9 @@
}
lbl.removeClass('waiting');
}
+
+
+
</script>
<style type="text/css">
.error-test{
@@ -328,7 +347,7 @@
<c:if test="${param.descDisplay=='true'}">
<div id='${param.study}' class="accordion open" title="${tooltip}" onclick="acc(jQuery(this));">${param.modality} - <%=studyDesc%></div>
</c:if>
- <div class="scrollable selectedStudy" style="overflow-x: hidden; overflow-y: auto; width:100%; margin-bottom: 2%; max-height: 55vh; height: auto;">
+ <div class="scrollable selectedStudy" style="overflow-x: hidden; overflow-y: auto; width:100%; margin-bottom: 2%; height: auto;">
<ser:Series patientId="${param.patient}" study="${param.study}" dcmURL="${param.dcmURL}" serverURL="${param.wadoUrl}">
<c:set var="middle" value="${(numberOfImages+0.5)/2}" />
<fmt:formatNumber var="middle" maxFractionDigits="0" value="${middle}" />
@@ -531,4 +550,4 @@
</script>
</body>
- </html>
\ No newline at end of file
+ </html>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|