Skip to content

Commit 9d9fe88

Browse files
committed
Auto-adjust window location when taller than page
1 parent c107d46 commit 9d9fe88

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

SequenceAnalysis/resources/web/SequenceAnalysis/panel/AnalysisSectionPanel.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
*/
99
Ext4.define('SequenceAnalysis.panel.AnalysisSectionPanel', {
1010
extend: 'Ext.form.Panel',
11-
// TODO: align to top of window
1211
alias: 'widget.sequenceanalysis-analysissectionpanel',
1312
singleTool: false,
1413
allowDuplicateSteps: false,
@@ -196,8 +195,7 @@ Ext4.define('SequenceAnalysis.panel.AnalysisSectionPanel', {
196195
});
197196
}
198197

199-
// TODO: alignment
200-
var win = Ext4.create('Ext.window.Window', {
198+
Ext4.create('Ext.window.Window', {
201199
modal: true,
202200
ownerPanel: this,
203201
bodyStyle: 'padding: 5px;',
@@ -221,8 +219,7 @@ Ext4.define('SequenceAnalysis.panel.AnalysisSectionPanel', {
221219
}
222220
}
223221
}
224-
});
225-
win.show(btn);
222+
}).show(btn);
226223
},
227224

228225
getDescriptionButton: function(cfg){

0 commit comments

Comments
 (0)