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:
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', {
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue