diff --git a/lib/ice-coder.js b/lib/ice-coder.js index 08d4922..daa7be3 100644 --- a/lib/ice-coder.js +++ b/lib/ice-coder.js @@ -1266,16 +1266,15 @@ var ICEcoder = { top.ICEcoder.miniMapBoxTop = (percThru*parseInt(get('docExplorer').style.height,10)) - (percThru*top.ICEcoder.miniMapBoxHeight); // Set the minimap position according to scroll position (used if we move cursor in document) get('miniMapContent').style.marginTop = (-(parseInt(get('miniMapContent').getBoundingClientRect().height,10) - parseInt(get('docExplorer').style.height,10))*percThru) + "px"; - //console.log(get('miniMapContent').style.marginTop); // If less than the docExplorer height } else { // Set height of container to that of the content get('miniMapContainer').style.height = parseInt(get('miniMapContent').getBoundingClientRect().height,10)+"px"; // Set box height relative to font height - top.ICEcoder.miniMapBoxHeight = parseInt(get('docExplorer').style.height,10)/cM.defaultTextHeight()*2; + top.ICEcoder.miniMapBoxHeight = (parseInt(get('docExplorer').style.height,10)/cM.defaultTextHeight()*2); get('miniMapBox').style.height = top.ICEcoder.miniMapBoxHeight + "px"; // Set top position of it according to percentage through minimap and account for height of nav box - top.ICEcoder.miniMapBoxTop = (percThru*parseInt(get('miniMap').getBoundingClientRect().height,10)) - (percThru*top.ICEcoder.miniMapBoxHeight); + top.ICEcoder.miniMapBoxTop = (percThru*parseInt(get('miniMapContainer').getBoundingClientRect().height,10)) - (percThru*top.ICEcoder.miniMapBoxHeight); // Set the minimap position to 0 get('miniMapContent').style.marginTop = 0; } diff --git a/lib/ice-coder.min.js b/lib/ice-coder.min.js index f0f7c63..c44e858 100644 --- a/lib/ice-coder.min.js +++ b/lib/ice-coder.min.js @@ -53,7 +53,7 @@ get("miniMapContainer").innerHTML='