Doc should use units.gu for size, not pixel

Bug #1300419 reported by Riccardo Padovani
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu API Website
New
Undecided
Unassigned

Bug Description

E.G http://developer.ubuntu.com/api/qml/sdk-14.04/QtQuick.Column/

Column {
    spacing: 2
    Rectangle { color: "red"; width: 50; height: 50 }
    Rectangle { color: "green"; width: 20; height: 50 }
    Rectangle { color: "blue"; width: 50; height: 20 }
}

should be

Column {
    spacing: units.gu(1)
    Rectangle { color: "red"; width: units.gu(5); height: units.gu(5) }
    Rectangle { color: "green"; width: units.gu(2); height: units.gu(5); }
    Rectangle { color: "blue"; width: units.gu(5); units.gu(2); }
}

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.