From: Lukasz Anwajler Date: Thu, 16 Sep 2010 10:15:21 +0000 (-0500) Subject: Add annotation - better positioning X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/66c6a11da0b0128e1693582dbbb8b375fd4aedb9 Add annotation - better positioning --- diff --git a/redakcja/static/js/wiki/view_editor_wysiwyg.js b/redakcja/static/js/wiki/view_editor_wysiwyg.js index 7e1ba85c..a0c962d1 100644 --- a/redakcja/static/js/wiki/view_editor_wysiwyg.js +++ b/redakcja/static/js/wiki/view_editor_wysiwyg.js @@ -297,8 +297,8 @@ if ($origin.is(".annotation-inline-box")) { w = Math.max(w, 400); h = Math.max(h, 60); - if($('.htmlview div').offset().left + $('.htmlview div').width() > ($('.vsplitbar').offset().left - 450)){ - x = 0; + if($('.htmlview div').offset().left + $('.htmlview div').width() > ($('.vsplitbar').offset().left - 480)){ + x = -(Math.max($origin.offset().left, $origin.width())); } else { x = 100; }