Skip to content

Commit

Permalink
CI run 606 pushed to gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Nov 22, 2024
1 parent 7f0888f commit 9c49e12
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions demo/trunk/src/gui/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ dwvjq.gui.Slider = function (app) {
* Initialise the slider HTML.
*/
this.initialise = function () {
var dataRange = app.getData(0).image.getDataRange();
var dataId0 = app.getDataIds()[0];
var dataRange = app.getData(dataId0).image.getDataRange();
var min = dataRange.min;
var max = dataRange.max;

Expand All @@ -115,4 +116,4 @@ dwvjq.gui.setSliderChangeHandler = function (sliderInput, handler) {
$(document).on('pagecreate', '#tags_page', function () {
$('#' + sliderInput.id).on('change', handler);
});
};
};

0 comments on commit 9c49e12

Please sign in to comment.