From c478fea15fca26d70b58a7cdc14515a0688e345a Mon Sep 17 00:00:00 2001 From: David Norton Date: Wed, 5 Jul 2006 16:19:26 +0000 Subject: [PATCH] Fixes #52, button to expand to full screen mode. Fixes #92, sometimes it starts up in full screen mode and you can't switch it back. Fixes problem with tags summary on Notes not updating. --- .../content/scholar/customControls.xml | 2 +- chrome/chromeFiles/content/scholar/overlay.js | 10 ++++++++++ chrome/chromeFiles/content/scholar/overlay.xul | 3 ++- .../chromeFiles/skin/default/scholar/overlay.css | 5 +++++ .../skin/default/scholar/toolbar-fullscreen.png | Bin 0 -> 520 bytes 5 files changed, 18 insertions(+), 2 deletions(-) create mode 100755 chrome/chromeFiles/skin/default/scholar/toolbar-fullscreen.png diff --git a/chrome/chromeFiles/content/scholar/customControls.xml b/chrome/chromeFiles/content/scholar/customControls.xml index 836a6b584d..d69c1eaee6 100644 --- a/chrome/chromeFiles/content/scholar/customControls.xml +++ b/chrome/chromeFiles/content/scholar/customControls.xml @@ -125,7 +125,7 @@ - + diff --git a/chrome/chromeFiles/content/scholar/overlay.js b/chrome/chromeFiles/content/scholar/overlay.js index 2e5d4b630d..1f8b1f9995 100644 --- a/chrome/chromeFiles/content/scholar/overlay.js +++ b/chrome/chromeFiles/content/scholar/overlay.js @@ -11,6 +11,7 @@ var ScholarPane = new function() this.onLoad = onLoad; this.onUnload = onUnload; this.toggleDisplay = toggleDisplay; + this.fullScreen = fullScreen; this.newItem = newItem; this.newCollection = newCollection; this.onCollectionSelected = onCollectionSelected; @@ -79,6 +80,15 @@ var ScholarPane = new function() document.getElementById('scholar-pane').setAttribute('collapsed',!visible); document.getElementById('scholar-splitter').setAttribute('collapsed',!visible); + + if(!visible) + document.getElementById('content').setAttribute('collapsed', false); + } + + function fullScreen() + { + var visible = document.getElementById('content').getAttribute('collapsed') == 'true'; + document.getElementById('content').setAttribute('collapsed', !visible); } /* diff --git a/chrome/chromeFiles/content/scholar/overlay.xul b/chrome/chromeFiles/content/scholar/overlay.xul index 0b61f8614f..abfe9376bf 100644 --- a/chrome/chromeFiles/content/scholar/overlay.xul +++ b/chrome/chromeFiles/content/scholar/overlay.xul @@ -21,7 +21,7 @@ - + @@ -39,6 +39,7 @@