diff --git a/public_html/css/post.css b/public_html/css/post.css index b3d3e7d3..9ba01f46 100644 --- a/public_html/css/post.css +++ b/public_html/css/post.css @@ -181,12 +181,12 @@ position: relative; margin-bottom: 0.5em; } -.post-notes-target, -.post-notes { +.post-notes-target { + position: absolute; pointer-events: none; + z-index: 1; } .post-notes { - z-index: 1; position: absolute; left: 0; top: 0; diff --git a/public_html/js/Presenters/PostContentPresenter.js b/public_html/js/Presenters/PostContentPresenter.js index 6dc3413e..8bd9b17d 100644 --- a/public_html/js/Presenters/PostContentPresenter.js +++ b/public_html/js/Presenters/PostContentPresenter.js @@ -31,6 +31,8 @@ App.Presenters.PostContentPresenter = function( if (post.contentType === 'image') { loadPostNotes(); + $target.find('.post-notes-target').width($target.find('.image-wrapper').outerWidth()); + $target.find('.post-notes-target').height($target.find('.image-wrapper').outerHeight()); } }