Input: support 'squared' style
This commit is contained in:
parent
c11e279803
commit
6682aa9999
1 changed files with 2 additions and 1 deletions
|
@ -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() {
|
||||||
|
|
Loading…
Reference in a new issue