in ObjectInput and ObjectArrayInput, don't set height

This commit is contained in:
rolux 2012-06-13 15:55:34 +02:00
parent a874974f9a
commit 889ad7a83a
2 changed files with 2 additions and 5 deletions

View file

@ -48,7 +48,6 @@ Ox.ObjectArrayInput = function(options, self) {
self.$element.splice(index, 0, Ox.Element()
.css({
width: self.options.width + 'px',
height: (self.options.inputs.length + 1) * 24 - 8 + 'px'
})
);
if (index == 0) {
@ -81,7 +80,7 @@ Ox.ObjectArrayInput = function(options, self) {
title: self.options.buttonTitles.remove,
width: self.buttonWidth
})
.css({float: 'left', margin: '8px 4px 0 0'})
.css({margin: '8px 4px 0 0'})
.on({
click: function() {
var index = $(this).parent().data('index');
@ -101,7 +100,7 @@ Ox.ObjectArrayInput = function(options, self) {
title: self.options.buttonTitles.add,
width: self.buttonWidth
})
.css({float: 'left', margin: '8px 0 0 4px'})
.css({margin: '8px 0 0 4px'})
.on({
click: function() {
var index = $(this).parent().data('index');
@ -149,7 +148,6 @@ Ox.ObjectArrayInput = function(options, self) {
value.forEach(function(value, i) {
addInput(i, value);
});
}
function updateInputs() {

View file

@ -25,7 +25,6 @@ Ox.ObjectInput = function(options, self) {
.addClass('OxObjectInput')
.css({
width: self.options.width + 'px',
height: self.options.elements.length * 24 - 8 + 'px'
});
if (Ox.isEmpty(self.options.value)) {