1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 08:45:36 +03:00

officially unlocking resizable interface

This commit is contained in:
cTn 2014-05-08 11:31:04 +02:00
parent 1448baf4d6
commit 7207f2a525

View file

@ -12,16 +12,9 @@ function start_app() {
chrome.app.window.create('main.html', {
id: 'main-window',
frame: 'chrome',
resizable: false
minWidth: 960,
minHeight: 625
}, function(createdWindow) {
// set window size
createdWindow.setBounds({'width': 960, 'height': 625});
// bind events
createdWindow.onMaximized.addListener(function() {
createdWindow.restore();
});
createdWindow.onClosed.addListener(function() {
// connectionId is passed from the script side through the chrome.runtime.getBackgroundPage refference
// allowing us to automatically close the port when application shut down