WebOSDev - Programming has just evolved

The online blog for the webOS developer community you can find everything you need here to get a strong start developing applications for the webOS platform
Showing posts with label Dialog. Show all posts
Showing posts with label Dialog. Show all posts

Change background image of a palm dialog

Posted by codesos Thursday, June 24, 2010 0 comments

Ever wanted to change the background image of a palm dialog but all you could accomplish is an ugly rectangle inside of the Palm's Dialog;

Here is your solution:

In your CSS do this:

.palm-dialog-box

{

-webkit-border-image: url(../images/backdrop-dark.png) 32 24 32 24 stretch stretch;

}
 
where backdrop-dark.png is your image.
 
Enjoy

SDK version 1.2 issue

The problem happens when you try to call those dialogs from within a dialog created via

this.controller.showDialog(...) with preventCancel: true.
changing it to preventCancel: false Fixed the problem.