fix the sidebars margins whilst collapsed

This commit is contained in:
Damien Churchill 2009-04-07 19:54:06 +00:00
parent b71c31cc46
commit 2631f09315
1 changed files with 7 additions and 1 deletions

View File

@ -57,6 +57,10 @@ Deluge.ToolBar = {
Deluge.Connections.Window.show();
},
onPreferencesClick: function() {
Deluge.Preferences.show();
},
onTorrentAction: function(item) {
var selection = Deluge.Torrents.getSelections();
var ids = new Array();
@ -154,7 +158,8 @@ Deluge.ToolBar.Bar = new Ext.Toolbar({
cls: 'x-btn-text-icon',
text: _('Preferences'),
icon: '/icons/preferences.png',
handler: Deluge.ToolBar.onTorrentAction
handler: Deluge.ToolBar.onPreferencesClick,
scope: Deluge.ToolBar
},{
id: 'connectionman',
cls: 'x-btn-text-icon',
@ -488,5 +493,6 @@ Deluge.SideBar.Config = {
minSize: 175,
collapsible: true,
margins: '5 0 0 5',
cmargins: '5 5 0 5',
listeners: {'render': {scope: Deluge.SideBar, fn: Deluge.SideBar.onRender}}
}