Fixed post notes drag boundaries
This commit is contained in:
parent
c4489a14b8
commit
03ce73b1a5
2 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue