Deprecate setFontSize(), replace with new Zotero.UIProperties
This new XPCOM module handles font size and UI density and automatically keeps registered roots up to date when prefs change. Roots receive a UIPropertiesChanged event after their properties are updated.
This commit is contained in:
parent
d6e5da403c
commit
1dd3812e00
18 changed files with 116 additions and 49 deletions
|
@ -165,7 +165,7 @@ var Scaffold = new function () {
|
|||
this.initTestsEditor();
|
||||
|
||||
// Set font size from general pref
|
||||
Zotero.setFontSize(document.getElementById('scaffold-pane'));
|
||||
Zotero.UIProperties.registerRoot(document.getElementById('scaffold-pane'));
|
||||
|
||||
// Set font size of code editor
|
||||
var size = Zotero.Prefs.get("scaffold.fontSize");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue