Skip to content

Commit

Permalink
Fix non needed vertical scrollbar by resetting the kinetic container
Browse files Browse the repository at this point in the history
style. Removed extra pixel height.
  • Loading branch information
ivmartel committed Mar 6, 2015
1 parent 7a9be8a commit 2f8ccae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ dwv.App = function ()
// resize container
var jqDivId = "#"+containerDivId;
$(jqDivId).width(newWidth);
$(jqDivId).height(newHeight + 1); // +1 to be sure...
$(jqDivId).height(newHeight);
// resize image layer
if ( imageLayer ) {
var iZoomX = imageLayer.getZoom().x * mul;
Expand Down Expand Up @@ -1120,6 +1120,9 @@ dwv.App = function ()
height: dataHeight,
listening: false
});
// reset style
// (avoids a not needed vertical scrollbar)
drawStage.getContent().setAttribute("style", "");
}
// resize app
if ( fitToWindow ) {
Expand Down

0 comments on commit 2f8ccae

Please sign in to comment.