mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
officially unlocking resizable interface
This commit is contained in:
parent
1448baf4d6
commit
7207f2a525
1 changed files with 2 additions and 9 deletions
|
@ -12,16 +12,9 @@ function start_app() {
|
||||||
chrome.app.window.create('main.html', {
|
chrome.app.window.create('main.html', {
|
||||||
id: 'main-window',
|
id: 'main-window',
|
||||||
frame: 'chrome',
|
frame: 'chrome',
|
||||||
resizable: false
|
minWidth: 960,
|
||||||
|
minHeight: 625
|
||||||
}, function(createdWindow) {
|
}, function(createdWindow) {
|
||||||
// set window size
|
|
||||||
createdWindow.setBounds({'width': 960, 'height': 625});
|
|
||||||
|
|
||||||
// bind events
|
|
||||||
createdWindow.onMaximized.addListener(function() {
|
|
||||||
createdWindow.restore();
|
|
||||||
});
|
|
||||||
|
|
||||||
createdWindow.onClosed.addListener(function() {
|
createdWindow.onClosed.addListener(function() {
|
||||||
// connectionId is passed from the script side through the chrome.runtime.getBackgroundPage refference
|
// connectionId is passed from the script side through the chrome.runtime.getBackgroundPage refference
|
||||||
// allowing us to automatically close the port when application shut down
|
// allowing us to automatically close the port when application shut down
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue