Permalink
Browse files

Some minor cosmetic adjustments to the preferences

  • Loading branch information...
1 parent 972c60c commit e2e4c95f436892eb12466339445e2596a1aee462 @felicitus felicitus committed Jul 18, 2012
@@ -4,6 +4,8 @@ Ext.define('PartKeepr.DisplayPreferencesPanel', {
bodyStyle: 'background:#DBDBDB;padding: 10px;',
initComponent: function () {
this.showDescriptionsCheckbox = Ext.create("Ext.form.field.Checkbox", {
+ labelWidth: 120,
+ hideEmptyLabel: false,
boxLabel: i18n("Show category descriptions"),
handler: Ext.bind(this.showDescriptionsHandler, this)
});
@@ -64,7 +64,7 @@ Ext.define('PartKeepr.FormattingPreferencesPanel', {
this.priceNumDecimalsField = Ext.create("Ext.form.field.Number", {
name: 'priceNumDecimalsField',
fieldLabel: i18n('Decimal precision'),
- labelWidth: 150,
+ labelWidth: 120,
columnWidth: 0.5,
minValue: 0,
maxValue: 4,
@@ -81,6 +81,8 @@ Ext.define('PartKeepr.FormattingPreferencesPanel', {
this.useThousandSeparatorCheckbox = Ext.create("Ext.form.field.Checkbox", {
boxLabel: i18n("Separate thousands"),
+ labelWidth: 120,
+ hideEmptyLabel: false,
listeners: {
change: function(field, newValue) {
if (!this.loading) {
@@ -93,6 +95,7 @@ Ext.define('PartKeepr.FormattingPreferencesPanel', {
this.currencySymbolField = Ext.create("Ext.form.field.Text", {
fieldLabel: i18n("Currency Symbol"),
+ labelWidth: 120,
maxLength: 5,
listeners: {
change: function(field, newValue) {
@@ -105,7 +108,9 @@ Ext.define('PartKeepr.FormattingPreferencesPanel', {
});
this.currencyAtEndCheckbox = Ext.create("Ext.form.field.Checkbox", {
- boxLabel: i18n("Currency at end"),
+ boxLabel: i18n("Currency Symbol after value"),
+ labelWidth: 120,
+ hideEmptyLabel: false,
listeners: {
change: function(field, newValue) {
if (!this.loading) {

0 comments on commit e2e4c95

Please sign in to comment.