Setting height any higher then 95% creates scrollbars in chrome.
This commit is contained in:
Lightforger
2013-05-17 17:31:32 +02:00
parent bbf2181f4d
commit 93debfa663

View File

@@ -296,8 +296,8 @@ Danbooru.Note = {
$textarea = $('<textarea></textarea>'); $textarea = $('<textarea></textarea>');
$textarea.css({ $textarea.css({
width: "95%", width: "97%",
height: "10em" height: "95%"
}); });
if ($note_body.html() !== "<em>Click to edit</em>") { if ($note_body.html() !== "<em>Click to edit</em>") {
@@ -309,6 +309,7 @@ Danbooru.Note = {
$dialog.data("id", $note_body.data("id")); $dialog.data("id", $note_body.data("id"));
$dialog.dialog({ $dialog.dialog({
width: 360, width: 360,
height: 210,
dialogClass: "note-edit-dialog", dialogClass: "note-edit-dialog",
title: "Edit note", title: "Edit note",
buttons: { buttons: {