qml: correct item geometry. issue 304