Avoid unnecessary scrollbar in sync error panel, and remove height hack
This commit is contained in:
parent
10e9c5e0b7
commit
1d09c85822
1 changed files with 3 additions and 15 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue