projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d39249
)
Better window height for default_app.
author
Cheng Zhao
<zcbenz@gmail.com>
Mon, 5 May 2014 09:12:39 +0000
(17:12 +0800)
committer
Cheng Zhao
<zcbenz@gmail.com>
Mon, 5 May 2014 09:12:39 +0000
(17:12 +0800)
atom/browser/default_app/default_app.js
patch
|
blob
|
history
diff --git
a/atom/browser/default_app/default_app.js
b/atom/browser/default_app/default_app.js
index
acb5a67
..
63e5f99
100644
(file)
--- a/
atom/browser/default_app/default_app.js
+++ b/
atom/browser/default_app/default_app.js
@@
-14,7
+14,13
@@
app.on('window-all-closed', function() {
app.on('ready', function() {
app.commandLine.appendSwitch('js-flags', '--harmony_collections');
- mainWindow = new BrowserWindow({ width: 800, height: 600 });
+ var height = 600;
+ if (process.platform == 'win32')
+ height += 60;
+ else if (process.platform == 'linux')
+ height += 30;
+
+ mainWindow = new BrowserWindow({ width: 800, height: height });
mainWindow.loadUrl('file://' + __dirname + '/index.html');
if (process.platform == 'darwin') {