From bd46effadfa03d87deb8e6e6bfb37b204c84f07c Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 17 Jan 2014 12:14:44 +0000 Subject: [PATCH] fix errors when resizing item panel in map/calendar editor --- source/Ox.UI/js/Calendar/CalendarEditor.js | 7 +++---- source/Ox.UI/js/Map/MapEditor.js | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/source/Ox.UI/js/Calendar/CalendarEditor.js b/source/Ox.UI/js/Calendar/CalendarEditor.js index 65c32f59..beda628b 100644 --- a/source/Ox.UI/js/Calendar/CalendarEditor.js +++ b/source/Ox.UI/js/Calendar/CalendarEditor.js @@ -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, diff --git a/source/Ox.UI/js/Map/MapEditor.js b/source/Ox.UI/js/Map/MapEditor.js index 1d87e621..8dda2a2b 100644 --- a/source/Ox.UI/js/Map/MapEditor.js +++ b/source/Ox.UI/js/Map/MapEditor.js @@ -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});