diff --git a/source/Ox.UI/js/Form/Ox.Label.js b/source/Ox.UI/js/Form/Ox.Label.js index 91876d5d..16a1b257 100644 --- a/source/Ox.UI/js/Form/Ox.Label.js +++ b/source/Ox.UI/js/Form/Ox.Label.js @@ -16,17 +16,24 @@ Ox.Label = function(options, self) { id: '', overlap: 'none', textAlign: 'left', + style: 'rounded', title: '', width: 'auto' }) .options(options || {}) .addClass( - 'OxLabel' + (self.options.disabled ? ' OxDisabled' : '') + - (self.options.overlap != 'none' ? - ' OxOverlap' + Ox.toTitleCase(self.options.overlap) : '') + 'OxLabel Ox' + Ox.toTitleCase(self.options.style) + + (self.options.disabled ? ' OxDisabled' : '') + + ( + self.options.overlap != 'none' + ? + ' OxOverlap' + Ox.toTitleCase(self.options.overlap) : '' + ) ) .css(Ox.extend(self.options.width == 'auto' ? {} : { - width: self.options.width - 14 + 'px' // fixme: why 14???? + width: self.options.width - ( + self.options.style == 'rounded' ? 14 : 6 + ) + 'px' }, { textAlign: self.options.textAlign }))