Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent resizing a Chrome Packaged App?

I've just jumped into developing apps for chrome, and just started with the "Hello World" example. My first thing I wanted to change is to prevent resizing of the window, I've searched and got nothing... :(

So, is this even possible right now?

Also, reading the documentation it says 'panel' is non-resizable,but at least in windows it is...

like image 381
Love Dager Avatar asked Dec 03 '22 00:12

Love Dager


1 Answers

Use the resizable flag.

chrome.app.window.create("YourPage.html", {
    "bounds": {
        "width": 320,
        "height": 240,
    },
    "resizable": false,
});
like image 101
Greg Avatar answered Jan 16 '23 16:01

Greg