Disable Minimize and Maximize buttons in packaged app

872 views
Skip to first unread message

Shrik

unread,
Dec 31, 2012, 7:27:08 AM12/31/12
to chromi...@chromium.org
Hello friends,
 I am looking for a way to disable Minimize and Maximize button in packaged app (need Close button to be visible). 
 Is there anyone know how to achieve that? Please share code snippet if you can. 
 I am a beginner and any help would appreciated. 
 Thanks in advance.

Trent Apted

unread,
Jan 1, 2013, 5:23:34 PM1/1/13
to Shrik, Chromium Apps
The Calculator app hides/disables the maximize button (when running in a sufficiently recent version of Chrome) by setting min{Width,Height} to the same as max{Width,Height} in chrome.app.window.create(..) -- https://github.com/GoogleChrome/chrome-app-samples/blob/master/calculator/main.js .

I don't believe there is a way currently to disable the minimize button.


--
You received this message because you are subscribed to the Google Groups "Chromium Apps" group.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msg/chromium-apps/-/4Lfd20A3XdcJ.
To post to this group, send email to chromi...@chromium.org.
To unsubscribe from this group, send email to chromium-app...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-apps/?hl=en.

Renato Mangini

unread,
Jan 2, 2013, 11:29:58 AM1/2/13
to Trent Apted, Shrik, Chromium Apps

Shrik, 

I just answered a similar question in another thread. You can use the frameless window. Remember that you will need to provide any other window decoration on your own, including the close button. Refer to the frameless window for a sample code (https://github.com/GoogleChrome/chrome-app-samples/tree/master/frameless-window)

Renato Mangini | Chrome Developer Advocate | man...@google.com | +55 11 2395-8608
Reply all
Reply to author
Forward
0 new messages