]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/richtext.js
Start layers pane
[rails.git] / app / assets / javascripts / richtext.js
index 78a9d452f92d8d2465594434bb520bb4fb9973c6..38cc2a77bd5f332ce6aa2a35ae957dafa8cd3204 100644 (file)
@@ -41,8 +41,8 @@ $(document).ready(function () {
   $(".richtext_dopreview").click(function (event) {
     var editor = $(this).parents(".richtext_container").find("textarea");
     var preview = $(this).parents(".richtext_container").find(".richtext_preview");
-    var width = editor.outerWidth() - preview.outerWidth() + preview.innerWidth();
-    var minHeight = editor.outerHeight() - preview.outerHeight() + preview.innerHeight();
+    var width = editor.outerWidth() - preview.outerWidth() + preview.width();
+    var minHeight = editor.outerHeight() - preview.outerHeight() + preview.height();
 
     if (preview.contents().length == 0) {
       preview.oneTime(500, "loading", function () {