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.
This commit is contained in:
parent
cb4a79ef9d
commit
c478fea15f
5 changed files with 18 additions and 2 deletions
|
@ -125,7 +125,7 @@
|
|||
<xul:textbox multiline="true" type="timed" timeout="1000" flex="1" oncommand="this.parentNode.parentNode.save();"/>
|
||||
<xul:label value="See also: (coming soon)"/>
|
||||
<xul:label onclick="this.nextSibling.showPopup(this,-1,-1,'popup',0,0);"/>
|
||||
<xul:popup width="300" onpopuphidden="this.updateTagsSummary();">
|
||||
<xul:popup width="300" onpopuphidden="this.parentNode.parentNode.updateTagsSummary();">
|
||||
<xul:tagsbox/>
|
||||
</xul:popup>
|
||||
</xul:vbox>
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
<vbox id="appcontent">
|
||||
<splitter id="scholar-splitter" resizebefore="closest" resizeafter="closest" persist="collapsed"/>
|
||||
<vbox id="scholar-pane" persist="height collapsed">
|
||||
<vbox id="scholar-pane" flex="1" persist="height collapsed">
|
||||
<popupset>
|
||||
<popup id="scholar-collectionmenu" onpopupshowing="ScholarPane.buildCollectionContextMenu();">
|
||||
<menuitem label="&toolbar.newCollection.label;" command="cmd_scholar_newCollection"/>
|
||||
|
@ -39,6 +39,7 @@
|
|||
<label value="Scholar" id="scholar-toolbar-name"/>
|
||||
<label value="1.0 Alpha"/>
|
||||
<spacer flex="1"/>
|
||||
<toolbarbutton id="tb-fullscreen" tooltiptext="Toggle Fullscreen" oncommand="ScholarPane.fullScreen();"/>
|
||||
<toolbarbutton class="tabs-closebutton" oncommand="ScholarPane.toggleDisplay()"/>
|
||||
</toolbar>
|
||||
<hbox flex="1">
|
||||
|
|
|
@ -60,6 +60,11 @@ vbox #scholar-pane
|
|||
font-size: larger;
|
||||
}
|
||||
|
||||
#tb-fullscreen
|
||||
{
|
||||
list-style-image: url('chrome://scholar/skin/toolbar-fullscreen.png');
|
||||
}
|
||||
|
||||
#tb-collection-add
|
||||
{
|
||||
list-style-image: url('chrome://scholar/skin/toolbar-collection-add.png');
|
||||
|
|
BIN
chrome/chromeFiles/skin/default/scholar/toolbar-fullscreen.png
Executable file
BIN
chrome/chromeFiles/skin/default/scholar/toolbar-fullscreen.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 520 B |
Loading…
Add table
Add a link
Reference in a new issue