commit 1d09c8582214f2cf99ac5f4d50cd64d082880a57
parent 10e9c5e0b79d6e8251775a169f56f33752e32b0d
Author: Dan Stillman <dstillman@zotero.org>
Date: Mon, 8 Jul 2013 21:08:28 -0400
Avoid unnecessary scrollbar in sync error panel, and remove height hack
Diffstat:
1 file changed, 3 insertions(+), 15 deletions(-)
diff --git a/chrome/content/zotero/xpcom/sync.js b/chrome/content/zotero/xpcom/sync.js
@@ -978,28 +978,16 @@ Zotero.Sync.Runner = new function () {
box.appendChild(content);
box.appendChild(buttons);
- // Use of deck and textbox+description here is a hack from
- // http://www.blackfishsoftware.com/node/47 to make the text
- // selectable while maintaining the proper width and height
- var deck = doc.createElement('deck');
-
var msg = e.message;
/*if (e.fileName) {
msg += '\n\nFile: ' + e.fileName + '\nLine: ' + e.lineNumber;
}*/
- var textbox = doc.createElement('textbox');
- textbox.className = 'plain';
- textbox.setAttribute('multiline', true);
- textbox.setAttribute('readonly', true);
- textbox.setAttribute('value', msg);
- deck.appendChild(textbox);
-
var desc = doc.createElement('description');
desc.textContent = msg;
- deck.appendChild(desc);
-
- content.appendChild(deck);
+ // Make the text selectable
+ desc.setAttribute('style', '-moz-user-select: text; cursor: text');
+ content.appendChild(desc);
// If not an error and there's no explicit button text, don't show
// button to report errors