Chrome App Disable Window Resizing

7,050 views
Skip to first unread message

Lazar Nikolov

unread,
Apr 18, 2014, 11:16:24 PM4/18/14
to chromium-...@chromium.org
Hello guys,

I'm making a Chrome App, but I want to disable window resizing. Can you guys show me how do to that? Also I want to disable Right-Click in the app, so the users won't "Inspect My Elements".

Thank you guys!
Lazar Nikolov

James Mortensen

unread,
Apr 19, 2014, 12:45:42 AM4/19/14
to Lazar Nikolov, Chromium-extensions
Hi Lazar, 

The elements are only inspectable when the Tools -> Extensions window is in "Developer Mode".  But even then, you're wasting your time. We can just go in our profile directory and look at the code.  People worry too much about stuff like that:

1. We all learn from each other all the time, and in fact, you wouldn't be able to build your app right now without my help and I wouldn't have built mine without someone else's.

2.  If someone is going to try to reverse engineer your app and copy it, they are inferior to you, and they're going to provide very poor service to their customers and lose in the end.  Why? Because they're losers who can't put in the effort without theft, and they have no gumption.  You, on the other hand, will win. So put your energy into your product and your customers and forget about those who have no heart. :)

As for disabling window resizing, check the bounds property on chrome.app.window.create, https://developer.chrome.com/apps/app_window#type-Bounds.  The idea is you set the minHeight and maxHeight to be a fixed value, and do the same with minWidth and axWidth.

Hope this helps, and good luck!


James




--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-extensions/665e122e-3a6a-4949-b075-2789cf74a4bc%40chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

Lazar Nikolov

unread,
Apr 19, 2014, 12:50:38 PM4/19/14
to chromium-...@chromium.org, Lazar Nikolov, james.m...@synclio.com
Okay James,

Thanks for the help. The Right-Click disabling was just an option, I didn't need it much. I'll take a look at the link you provided, I hope it'll help me.

Thanks again,
Lazar Nikolov


On Saturday, April 19, 2014 6:45:42 AM UTC+2, James Mortensen wrote:
Hi Lazar, 

The elements are only inspectable when the Tools -> Extensions window is in "Developer Mode".  But even then, you're wasting your time. We can just go in our profile directory and look at the code.  People worry too much about stuff like that:

1. We all learn from each other all the time, and in fact, you wouldn't be able to build your app right now without my help and I wouldn't have built mine without someone else's.

2.  If someone is going to try to reverse engineer your app and copy it, they are inferior to you, and they're going to provide very poor service to their customers and lose in the end.  Why? Because they're losers who can't put in the effort without theft, and they have no gumption.  You, on the other hand, will win. So put your energy into your product and your customers and forget about those who have no heart. :)

As for disabling window resizing, check the bounds property on chrome.app.window.create, https://developer.chrome.com/apps/app_window#type-Bounds.  The idea is you set the minHeight and maxHeight to be a fixed value, and do the same with minWidth and axWidth.

Hope this helps, and good luck!


James




On Fri, Apr 18, 2014 at 8:16 PM, Lazar Nikolov <laki...@gmail.com> wrote:
Hello guys,

I'm making a Chrome App, but I want to disable window resizing. Can you guys show me how do to that? Also I want to disable Right-Click in the app, so the users won't "Inspect My Elements".

Thank you guys!
Lazar Nikolov

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
Message has been deleted

Ben Wells

unread,
Apr 21, 2014, 8:59:26 PM4/21/14
to Lazar Nikolov, Chromium-extensions, James Mortensen
To stop a window being resizable, set the resizable flag to false when you create the window. Documentation is here: https://developer.chrome.com/apps/app_window#type-CreateWindowOptions.


On Sun, Apr 20, 2014 at 2:56 AM, Lazar Nikolov <laki...@gmail.com> wrote:
Anyway I set the min-max Width and the min-max Height values to fixed ones, but my window is still resizing. Here's a photo of proof, maybe I got something wrong so fix me up.
Thanks James


On Saturday, April 19, 2014 6:45:42 AM UTC+2, James Mortensen wrote:
Hi Lazar, 

The elements are only inspectable when the Tools -> Extensions window is in "Developer Mode".  But even then, you're wasting your time. We can just go in our profile directory and look at the code.  People worry too much about stuff like that:

1. We all learn from each other all the time, and in fact, you wouldn't be able to build your app right now without my help and I wouldn't have built mine without someone else's.

2.  If someone is going to try to reverse engineer your app and copy it, they are inferior to you, and they're going to provide very poor service to their customers and lose in the end.  Why? Because they're losers who can't put in the effort without theft, and they have no gumption.  You, on the other hand, will win. So put your energy into your product and your customers and forget about those who have no heart. :)

As for disabling window resizing, check the bounds property on chrome.app.window.create, https://developer.chrome.com/apps/app_window#type-Bounds.  The idea is you set the minHeight and maxHeight to be a fixed value, and do the same with minWidth and axWidth.

Hope this helps, and good luck!


James




On Fri, Apr 18, 2014 at 8:16 PM, Lazar Nikolov <laki...@gmail.com> wrote:
Hello guys,

I'm making a Chrome App, but I want to disable window resizing. Can you guys show me how do to that? Also I want to disable Right-Click in the app, so the users won't "Inspect My Elements".

Thank you guys!
Lazar Nikolov

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extens...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.

Lazar Nikolov

unread,
Apr 21, 2014, 9:02:02 PM4/21/14
to chromium-...@chromium.org, Lazar Nikolov, James Mortensen
Yeah I got it yesterday. Just the same way. Thanks Ben!


On Tuesday, April 22, 2014 2:59:26 AM UTC+2, Ben Wells wrote:
To stop a window being resizable, set the resizable flag to false when you create the window. Documentation is here: https://developer.chrome.com/apps/app_window#type-CreateWindowOptions.
On Sun, Apr 20, 2014 at 2:56 AM, Lazar Nikolov <laki...@gmail.com> wrote:
Anyway I set the min-max Width and the min-max Height values to fixed ones, but my window is still resizing. Here's a photo of proof, maybe I got something wrong so fix me up.
Thanks James


On Saturday, April 19, 2014 6:45:42 AM UTC+2, James Mortensen wrote:
Hi Lazar, 

The elements are only inspectable when the Tools -> Extensions window is in "Developer Mode".  But even then, you're wasting your time. We can just go in our profile directory and look at the code.  People worry too much about stuff like that:

1. We all learn from each other all the time, and in fact, you wouldn't be able to build your app right now without my help and I wouldn't have built mine without someone else's.

2.  If someone is going to try to reverse engineer your app and copy it, they are inferior to you, and they're going to provide very poor service to their customers and lose in the end.  Why? Because they're losers who can't put in the effort without theft, and they have no gumption.  You, on the other hand, will win. So put your energy into your product and your customers and forget about those who have no heart. :)

As for disabling window resizing, check the bounds property on chrome.app.window.create, https://developer.chrome.com/apps/app_window#type-Bounds.  The idea is you set the minHeight and maxHeight to be a fixed value, and do the same with minWidth and axWidth.

Hope this helps, and good luck!


James




On Fri, Apr 18, 2014 at 8:16 PM, Lazar Nikolov <laki...@gmail.com> wrote:
Hello guys,

I'm making a Chrome App, but I want to disable window resizing. Can you guys show me how do to that? Also I want to disable Right-Click in the app, so the users won't "Inspect My Elements".

Thank you guys!
Lazar Nikolov

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsubscribe...@chromium.org.

--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-extensions+unsub...@chromium.org.
To post to this group, send email to chromium-...@chromium.org.
Visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/.

sonakshi chomal

unread,
May 13, 2015, 1:45:39 AM5/13/15
to chromium-...@chromium.org, laki...@gmail.com, james.m...@synclio.com
 Hey,

 I too have the same issue, when I used "resizable":"false" , it worked perfectly fine on windows and mac operating systems but when I run my chrome app on linux systems its does not work .. I could still re size its window ..I searched a lot  but still could not find anything..   :(


Reply all
Reply to author
Forward
0 new messages