From 44a9b84891b8c6fa7897a3a00a397f3c894e32a1 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 18 Mar 2015 19:04:57 -0400 Subject: [PATCH] Additional safety check when checking for persisted item pane state I don't think there's any way for this to happen short of manual preference editing, and the pane width would have to be exactly 250px, and it's pretty harmless anyway, but might as well be safe. --- chrome/content/zotero/zoteroPane.js | 1 + 1 file changed, 1 insertion(+) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 7ecdf1abd..a2b2bed4d 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -4093,6 +4093,7 @@ var ZoteroPane = new function() if (el.id == 'zotero-items-splitter') continue; // And don't restore to min-width if splitter was collapsed if (el.id == 'zotero-item-pane' && attr == 'width' && elValues[attr] == 250 + && 'zotero-items-splitter' in serializedValues && serializedValues['zotero-items-splitter'].state == 'collapsed') { continue; }