Skip to content

Instantly share code, notes, and snippets.

@dstensnes
Created June 18, 2014 21:40
Show Gist options
  • Save dstensnes/031663ddbce4f5464521 to your computer and use it in GitHub Desktop.
Save dstensnes/031663ddbce4f5464521 to your computer and use it in GitHub Desktop.
html,body,iframe,div#content {
padding: 0;
margin: 0;
width: 100%;
height: 100%;
min-height: 100%;
border: 0;
background-color: #000000;
overflow: hidden;
}
div#content, iframe {
margin: auto;
box-sizing:border-box;
-moz-box-sizing:border-box;
height: 100%;
min-height: 100%;
}
<!DOCTYPE html>
<!--
vim: ts=2 sw=2 noexpandtab
-->
<html>
<head>
<title>test-atom-persists</title>
<link rel="stylesheet" type="text/css" href="app.css">
</head>
<body>
<div id="content">
<iframe src="https://www.google.com/"></iframe>
</div>
</body>
</html>
var app = require('app');
var BrowserWindow = require('browser-window');
// Quit when all windows are closed and no other one is listening to this.
app.on('window-all-closed', function() {
if (app.listeners('window-all-closed').length == 1)
app.quit();
});
var mainWindow = null;
var menu = null;
app.on('ready', function() {
mainWindow = new BrowserWindow({
width: 800,
height: 600,
'use-content-size': true,
'overflow': 'hidden',
});
mainWindow.loadUrl('file://' + __dirname + '/index.html');
});
{
"name": "test-atom-persist",
"productName": "test-atom-persists",
"version": "0.1.0",
"main": "main.js",
"dependencies": {
"optimist": "*"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment