Input: support 'squared' style

This commit is contained in:
rolux 2014-05-10 15:10:54 +02:00 committed by j
parent c11e279803
commit 6682aa9999

View file

@ -260,6 +260,7 @@ Ox.Input = function(options, self) {
if (self.options.clear) { if (self.options.clear) {
self.$button = Ox.Button({ self.$button = Ox.Button({
overlap: 'left', overlap: 'left',
style: self.options.style,
title: 'close', title: 'close',
tooltip: self.options.clearTooltip, tooltip: self.options.clearTooltip,
type: 'image' type: 'image'
@ -792,7 +793,7 @@ Ox.Input = function(options, self) {
- (self.options.arrows ? 32 : 0) - (self.options.arrows ? 32 : 0)
- (self.options.clear ? 16 : 0) - (self.options.clear ? 16 : 0)
- (self.options.label ? self.options.labelWidth : 0) - (self.options.label ? self.options.labelWidth : 0)
- (self.options.style == 'rounded' ? 14 : 6); - (Ox.contains(['rounded', 'squared'], self.options.style) ? 14 : 6);
} }
function insert() { function insert() {