Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm developing a webapp and in Ubuntu 14.04 I have this doubt:

Can I resize the window width from a web app? How?

For @terdon question:


The app is opening always like this:

enter image description here

I'd like open the app with this width:

enter image description here

Thanks in advance!

share|improve this question
Do you mean to say the width of your app. – Karthik Apr 27 '14 at 9:32
Yes, In Ubuntu 14.04 the window has always a big width for my webapp. I'd like to launch with less width. Thanks in advance! – costales Apr 27 '14 at 9:38
Please explain. Add a screenshot perhaps? Show us the relevant code? – terdon Apr 27 '14 at 10:02
@terdon Updated post for you :) – costales Apr 27 '14 at 10:11
up vote 0 down vote accepted

Thanks to the kindness of a developer, I can give some information to my questions.

I can't resize the window as a W3C standard operation; There isn't an explicit APIs for that, and generally move away from letting apps manage their sizes, to prepare for the desktop convergence. You should assume that the shell will present you in an appopriate way; You must to add / obseve some viewport metadata at some point to know whether you are a side-stage app or a fullscreen one.

Best regards!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.