Compute size of rich text preview pane correctly
This commit is contained in:
parent
f8cadaf480
commit
a4b5485405
1 changed files with 2 additions and 2 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue