mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-18 22:36:51 +00:00
use deferredRender: true on the card layout to fix the spinnergroups and
comboboxes
This commit is contained in:
parent
e0e2b1b350
commit
a7940d5bf9
@ -145,11 +145,5 @@ Deluge.preferences.Downloads = Ext.extend(Ext.FormPanel, {
|
|||||||
height: 22,
|
height: 22,
|
||||||
boxLabel: _('Add torrents in Paused state')
|
boxLabel: _('Add torrents in Paused state')
|
||||||
}));
|
}));
|
||||||
|
|
||||||
this.on('show', this.onShow, this);
|
|
||||||
},
|
|
||||||
|
|
||||||
onShow: function() {
|
|
||||||
Deluge.preferences.Downloads.superclass.onShow.call(this);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -49,7 +49,7 @@ Deluge.preferences.Interface = Ext.extend(Ext.form.FormPanel, {
|
|||||||
Deluge.preferences.Interface.superclass.initComponent.call(this);
|
Deluge.preferences.Interface.superclass.initComponent.call(this);
|
||||||
|
|
||||||
var optMan = this.optionsManager = new Deluge.OptionsManager();
|
var optMan = this.optionsManager = new Deluge.OptionsManager();
|
||||||
this.on('show', this.onShow, this);
|
this.on('show', this.onPageShow, this);
|
||||||
|
|
||||||
var fieldset = this.add({
|
var fieldset = this.add({
|
||||||
xtype: 'fieldset',
|
xtype: 'fieldset',
|
||||||
@ -247,8 +247,7 @@ Deluge.preferences.Interface = Ext.extend(Ext.form.FormPanel, {
|
|||||||
this.optionsManager.commit();
|
this.optionsManager.commit();
|
||||||
},
|
},
|
||||||
|
|
||||||
onShow: function() {
|
onPageShow: function() {
|
||||||
Deluge.preferences.Interface.superclass.onShow.call(this);
|
|
||||||
deluge.client.web.get_config({
|
deluge.client.web.get_config({
|
||||||
success: this.onGotConfig,
|
success: this.onGotConfig,
|
||||||
scope: this
|
scope: this
|
||||||
|
@ -224,7 +224,6 @@ Deluge.preferences.Plugins = Ext.extend(Ext.Panel, {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
this.on('show', this.onShow, this);
|
|
||||||
this.pluginInfo.on('render', this.onPluginInfoRender, this);
|
this.pluginInfo.on('render', this.onPluginInfoRender, this);
|
||||||
this.grid.on('cellclick', this.onCellClick, this);
|
this.grid.on('cellclick', this.onCellClick, this);
|
||||||
deluge.preferences.on('show', this.onPreferencesShow, this);
|
deluge.preferences.on('show', this.onPreferencesShow, this);
|
||||||
|
@ -94,6 +94,9 @@ Deluge.preferences.PreferencesWindow = Ext.extend(Ext.Window, {
|
|||||||
autoDestroy: false,
|
autoDestroy: false,
|
||||||
region: 'center',
|
region: 'center',
|
||||||
layout: 'card',
|
layout: 'card',
|
||||||
|
layoutConfig: {
|
||||||
|
deferredRender: true
|
||||||
|
},
|
||||||
autoScroll: true,
|
autoScroll: true,
|
||||||
width: 300,
|
width: 300,
|
||||||
margins: '5 5 5 5',
|
margins: '5 5 5 5',
|
||||||
|
@ -1,44 +0,0 @@
|
|||||||
/*!
|
|
||||||
* Ext.ux.form.TriggerField.js
|
|
||||||
*
|
|
||||||
* Copyright (c) Damien Churchill 2009-2010 <damoxc@gmail.com>
|
|
||||||
*
|
|
||||||
* This program is free software; you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation; either version 3, or (at your option)
|
|
||||||
* any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, write to:
|
|
||||||
* The Free Software Foundation, Inc.,
|
|
||||||
* 51 Franklin Street, Fifth Floor
|
|
||||||
* Boston, MA 02110-1301, USA.
|
|
||||||
*
|
|
||||||
* In addition, as a special exception, the copyright holders give
|
|
||||||
* permission to link the code of portions of this program with the OpenSSL
|
|
||||||
* library.
|
|
||||||
* You must obey the GNU General Public License in all respects for all of
|
|
||||||
* the code used other than OpenSSL. If you modify file(s) with this
|
|
||||||
* exception, you may extend this exception to your version of the file(s),
|
|
||||||
* but you are not obligated to do so. If you do not wish to do so, delete
|
|
||||||
* this exception statement from your version. If you delete this exception
|
|
||||||
* statement from all source files in the program, then also delete it here.
|
|
||||||
*/
|
|
||||||
|
|
||||||
if (Ext.isWebKit) {
|
|
||||||
Ext.override(Ext.form.TriggerField, {
|
|
||||||
onResize: function(w, h) {
|
|
||||||
Ext.form.TriggerField.superclass.onResize.call(this, w, h);
|
|
||||||
var tw = this.getTriggerWidth();
|
|
||||||
if (Ext.isNumber(w)) {
|
|
||||||
this.el.setWidth(w - tw);
|
|
||||||
}
|
|
||||||
this.wrap.setWidth(w);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user