3

I have been creating an app in the Ubuntu SDK. I want to make sure that the app fills the screen on the device (phone, tablet, etc.). I do not have a ubuntu phone or tablet to test this functionality.

This is my current height and width:

MainView {
    width: units.gu(100) 
    height: units.gu(75)

Will the app automatically be set to full screen? If so, does that mean the width of the screen is set to 100 grid units and the height of the screen is set to 75 grid units?

1 Answer 1

4

In non-windowed mode, meaning on a tablet or phone, the app will take up the full size of the screen, being anchored to the sides and the bottom of the top bar.

The width and height are only used by qmlscene on the desktop, meaning that is the size it will appear when run on the desktop. It should not affect the size of the app when run on a tablet or phone.

You can think of it as clicking Maximize when running on a desktop; even though you've set the size, the app can still be maximized.

1
  • This is correct
    – mhall119
    Aug 20, 2013 at 20:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .