git.ithinksw.org
/
philo.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Made a slight change to window position randomization; now only non-modal windows...
[philo.git]
/
contrib
/
gilbert
/
media
/
gilbert
/
lib
/
app.js
diff --git
a/contrib/gilbert/media/gilbert/lib/app.js
b/contrib/gilbert/media/gilbert/lib/app.js
index
f2f1aa4
..
b21455d
100644
(file)
--- a/
contrib/gilbert/media/gilbert/lib/app.js
+++ b/
contrib/gilbert/media/gilbert/lib/app.js
@@
-293,8
+293,6
@@
Gilbert.lib.app.Application = Ext.extend(Ext.util.Observable, {
constrainHeader: true,
}));
constrainHeader: true,
}));
- win.setPosition(Math.floor(Math.random() * ((this.desktop.getInnerWidth() - win.width) - 1)), Math.floor(Math.random() * ((this.desktop.getInnerHeight() - win.height) - 1)));
-
win.render(this.desktop.el);
if (win.modal) {
win.on('show', function () {
win.render(this.desktop.el);
if (win.modal) {
win.on('show', function () {
@@
-312,6
+310,8
@@
Gilbert.lib.app.Application = Ext.extend(Ext.util.Observable, {
this.mainmenu.show();
this.do_layout();
}, this);
this.mainmenu.show();
this.do_layout();
}, this);
+ } else {
+ win.setPosition(Math.floor(Math.random() * ((this.desktop.getInnerWidth() - win.width) - 1)), Math.floor(Math.random() * ((this.desktop.getInnerHeight() - win.height) - 1)));
}
this.taskbar.register_window(win);
this.fireEvent('window_created', win);
}
this.taskbar.register_window(win);
this.fireEvent('window_created', win);