fix errors when resizing item panel in map/calendar editor

This commit is contained in:
rolux 2014-01-17 12:14:44 +00:00
parent 63f06c984d
commit bd46effadf
2 changed files with 4 additions and 5 deletions

View file

@ -535,13 +535,12 @@ Ox.CalendarEditor = function(options, self) {
})
.bindEvent({
resize: function(data) {
self.$eventTitleName.options({width: data.size - 48});
self.$eventName.options({width: data.size - 28});
// fixme: pass width through form
/*
self.$eventFormItems.forEach(function($item) {
self.$eventForm.options('items').forEach(function($item) {
$item.options({width: data.size - 16});
});
*/
self.$matchesInput.options({width: data.size - 16});
}
}),
resizable: true,

View file

@ -765,7 +765,7 @@ Ox.MapEditor = function(options, self) {
resize: function(data) {
self.$placeName.options({width: data.size - 48});
// fixme: pass width through form
self.$placeFormItems.forEach(function($item) {
self.$placeForm.options('items').forEach(function($item) {
$item.options({width: data.size - 16});
});
self.$areaKmInput.options({width: data.size - 16});