08-13-2012 06:08 AM
I have a custom dialog in attachedObjects. How can I set its layout properties to center ? I tried using docklayout but it didn't work.
Solved! Go to Solution.
08-15-2012 04:40 PM
Yeap, that's the way but you will need to set the height and width to be able to set it.
Check the CustomDialogAlarm.qml file, available under:
Hope this helps.
08-22-2012 05:08 AM
Sorry but I forgot to mention that I have fixed my orientation to landscape mode. In lanscape the dialog doesn't appear at the center. Even in that cookbook example of fire alarm.
08-22-2012 02:01 PM
you will need to set the height and width anyway, if it is fixed you can try something like the sample bellow ( based on cookbook, just changed height and width values).
preferredWidth: 1280 //768 Portrait Width preferredHeight: 768 //1280 Portrait Height
If you need to support orientation, then you may need to check this https://developer.blackberry.com/cascades/referenc