Fixed post notes drag boundaries

This commit is contained in:
Marcin Kurczewski 2014-10-26 11:45:30 +01:00
parent c4489a14b8
commit 03ce73b1a5
2 changed files with 5 additions and 3 deletions

View file

@ -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;

View file

@ -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());
}
}