English 中文(简体)
How can I decrease the font size of the showAlertDialog title?
原标题:
  • 时间:2009-12-22 04:47:34
  •  标签:
  • webos

How can I decrease the font size of the showAlertDialog title?

最佳回答

A (dirty) way is to overwrite the .dialog-title class of the palm css file. But this affects all alert dialogs of your app.

.dialog-title {
font-size:5px !important;

}

A better way is to use your one dialog template with:

this.controller.showDialog({
       template:  dialogs/sample-dialog ,
       assistant: new SampleDialogAssistant(this),
       wisdom: randomLorem(),
       preventCancel:true
 });

See Palm Developer Guide for more information.

问题回答

暂无回答




相关问题
Orientation Questions - palm pre webos

Just a couple of quick questions...not too hard to answer hopefully! How do I set the allowed orientation from scene to scene? I can set it for the entire stage with: this.controller....

How to set default language in WebOs

How can I set the dault language of an WebOs project? The standard way of adding internationalization in WebOS is to use the $L() function, where I can set a key to the translated string. But if the ...

push scene by tapping on image

push scene by tapping on image. i am using one image when i am tap that image i want to push the new scene. it is not working. is there any way to push the scene when tap on image controle it showing ...

Is it possible to use d8 to measure memory usage?

With the release of the Closure compiler, I was hoping to see if there was a difference in memory usage between a js file using the compiler and one which had not. In particular, on a mobile ...

热门标签