diff --git a/changelog.txt b/changelog.txt index 4752af72..fa483cc9 100644 --- a/changelog.txt +++ b/changelog.txt @@ -4,6 +4,7 @@ OPENSEADRAGON CHANGELOG 4.0.1: (in progress...) * The viewer no longer emits canvas-key events for both keydown and keypress events; canvas-key is now just for keydown, and the new canvas-key-press is for keypress (#2270 @hrghauri) +* Fixed: Navigator display rectangle was off if the page had box-sizing: border-box (#2276 @ambujsahu81) 4.0.0: diff --git a/src/navigator.js b/src/navigator.js index 92620af5..f7fe611e 100644 --- a/src/navigator.js +++ b/src/navigator.js @@ -184,6 +184,7 @@ $.Navigator = function( options ){ style.styleFloat = 'left'; //IE style.zIndex = 999999999; style.cursor = 'default'; + style.boxSizing = 'content-box'; }( this.displayRegion.style, this.borderWidth )); $.setElementPointerEventsNone( this.displayRegion ); $.setElementTouchActionNone( this.displayRegion );