PDA

View Full Version : How to set smaller font size on Chrome?



kerbo
12 Jul 2009, 12:59 AM
I use a smaller font for all my fields by setting the following attributes:

Fields:

ctCls: 'x-small-editor'
labelStyle: 'font-size:11px;'

ComboBoxes:

labelStyle: 'font-size:11px;'
ctCls: 'x-small-editor'
listClass: 'x-combo-list-small'

This works for FF and IE but not for Chrome (or I assume for any Webkit browser).

The labels display correctly but the text and combo boxes are still displaying in the larger 12pt font. Also, for comboboxes, the height of the textbox if greater than than the height of the drop down arrow.

Are there CSS fixes for this problem?

Also, as a suggestion, it would be helpful if font sizes for fields could be set using one attribute (e.g., fontSize) and Ext worries about making it work.