Skip to content

Commit

Permalink
Use layer container parent as reference. Fixes #581.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmartel committed Oct 8, 2018
1 parent 67e3194 commit 771f977
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,8 @@ dwv.App = function ()
* @return {width, height} The width and height of the div.
*/
this.getLayerContainerSize = function () {
var div = document.getElementById(containerDivId);
var ldiv = self.getElement("layerContainer");
var div = ldiv.parentNode;
// remove the height of other elements of the container div
var height = div.offsetHeight;
var kids = div.children;
Expand Down

0 comments on commit 771f977

Please sign in to comment.