From 75d347b7bad5f4878d92262f4ea378be1ce685c1 Mon Sep 17 00:00:00 2001 From: Ross Date: Fri, 12 Nov 2021 12:45:25 +0000 Subject: [PATCH] . --- anatomy/static/css/anatomy.css | 5 +++++ rapids/templates/rapids/rapid_form.html | 10 +++++----- static/css/anatomy.css | 5 +++++ 3 files changed, 15 insertions(+), 5 deletions(-) diff --git a/anatomy/static/css/anatomy.css b/anatomy/static/css/anatomy.css index b78ce75f..235d22dd 100644 --- a/anatomy/static/css/anatomy.css +++ b/anatomy/static/css/anatomy.css @@ -785,4 +785,9 @@ input { color: darkblue; border: 1px solid black; + } + + .temp-thumb-large { + width: 1000px; + height: 1000px; } \ No newline at end of file diff --git a/rapids/templates/rapids/rapid_form.html b/rapids/templates/rapids/rapid_form.html index 9320040b..eb3b5bb9 100755 --- a/rapids/templates/rapids/rapid_form.html +++ b/rapids/templates/rapids/rapid_form.html @@ -471,11 +471,11 @@ cornerstone.loadAndCacheImage(imageId).then(function (image) { cornerstone.displayImage(element2, image); - element2.requestFullscreen().then(() => { - ocr2($(element2).find("canvas").get(0).toDataURL(), el); - document.exitFullscreen(); - }) - //cornerstone.resize(element2) + $(element2).addClass("temp-thumb-large"); + cornerstone.resize(element2) + ocr2($(element2).find("canvas").get(0).toDataURL(), el); + $(element2).removeClass("temp-thumb-large"); + cornerstone.resize(element2) }); diff --git a/static/css/anatomy.css b/static/css/anatomy.css index b78ce75f..235d22dd 100644 --- a/static/css/anatomy.css +++ b/static/css/anatomy.css @@ -785,4 +785,9 @@ input { color: darkblue; border: 1px solid black; + } + + .temp-thumb-large { + width: 1000px; + height: 1000px; } \ No newline at end of file