mirror of
https://github.com/zotero/zotero.git
synced 2026-09-29 01:41:24 +00:00
TEMP: Don't use hiddenDOMWindow for editable-text sizing
Causes an error on Linux.
This commit is contained in:
parent
0d830a5185
commit
2825151467
1 changed files with 3 additions and 2 deletions
|
|
@ -64,8 +64,9 @@
|
|||
// getBoundingClientRect(), offsetWidth, scrollWidth, etc. on an element
|
||||
// in this document from sizeToContent() will, bizarrely, cause things
|
||||
// in the metadata table to overlap
|
||||
// TODO: Revisit after next Fx platform upgrade
|
||||
let doc = Services.appShell.hiddenDOMWindow.document;
|
||||
// TEMP: fx140: Use document
|
||||
// TODO: Check if this bug is still present and restore hiddenDOMWindow if necessary
|
||||
let doc = document; // Services.appShell.hiddenDOMWindow.document;
|
||||
let span = doc.createElement('span');
|
||||
span.style.position = 'absolute';
|
||||
span.style.visibility = 'hidden';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue