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:

Code: https://launchpad.net/unity-webapps-telegram

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!

  • 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

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!

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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