panel: Port QML/JavaScript, fix getMargins()
Fix fallback return value of getMargins()
By default JavaScript would return undefined
which is not really
assignable to some numeric properties.
By default JavaScript would return undefined
which is not really
assignable to some numeric properties.