From 5efb676f86a54c84b9f6a10c2ed59d3d7c8349c4 Mon Sep 17 00:00:00 2001 From: David Manthey Date: Tue, 2 May 2023 09:33:38 -0400 Subject: [PATCH] Fix setting minimum values on bands from the frame selector --- CHANGELOG.md | 4 ++++ .../web_client/vue/components/CompositeLayers.vue | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fbb87a48d..b18138d38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,12 +2,16 @@ ## 1.20.6 +### Improvements +- Store current frame and style in the DOM for easier access ([#1036](../../pull/1036)) + ### Changes - Add a guard if PIL doesn't support ImageCms ([#1032](../../pull/1032)) ### Bug Fixes - Allow clearing the min/max fields of the frame selector ([#1030](../../pull/1030)) - Fix a bug with caching tiles and styling ([#1031](../../pull/1031)) +- Fix setting minimum values on bands from the frame selector ([#1038](../../pull/1038)) ## 1.20.5 diff --git a/girder/girder_large_image/web_client/vue/components/CompositeLayers.vue b/girder/girder_large_image/web_client/vue/components/CompositeLayers.vue index 6ae251185..4f55c96f0 100644 --- a/girder/girder_large_image/web_client/vue/components/CompositeLayers.vue +++ b/girder/girder_large_image/web_client/vue/components/CompositeLayers.vue @@ -88,7 +88,7 @@ export default { this.compositeLayerInfo[layer].palette = swatch.hex; }, updateLayerMin(event, layer) { - const newVal = event.target.value; + const newVal = event.target.valueAsNumber; const newMinVal = Number.isFinite(newVal) ? parseFloat(newVal) : undefined; this.compositeLayerInfo[layer].min = newMinVal; this.updateStyle(); @@ -177,7 +177,7 @@ export default { type="number" step="0.01" min="0" - max="1" + max="65535" :value="layerInfo.min" @change.prevent="(event) => updateLayerMin(event, layer)" > @@ -187,7 +187,7 @@ export default { type="number" step="0.01" min="0" - max="1" + max="65535" :value="layerInfo.max" @change.prevent="(event) => updateLayerMax(event, layer)" >