From 3fcc3c507a961cd54d08cbade611f5e7e0637580 Mon Sep 17 00:00:00 2001 From: Duncan Sommerville Date: Tue, 29 Sep 2015 15:09:09 -0400 Subject: [PATCH] Fix tabs bug --- .../library/events/library_showbuilder.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/airtime_mvc/public/js/airtime/library/events/library_showbuilder.js b/airtime_mvc/public/js/airtime/library/events/library_showbuilder.js index 833ad71ae..549f586bc 100644 --- a/airtime_mvc/public/js/airtime/library/events/library_showbuilder.js +++ b/airtime_mvc/public/js/airtime/library/events/library_showbuilder.js @@ -133,10 +133,12 @@ var AIRTIME = (function(AIRTIME) { return container; }, - cursor: 'move', - cursorAt: { - left: Math.floor($(this).outerWidth() / 2) + create: function(event, ui) { + $(this).draggable("option", "cursorAt", { + left: Math.floor(this.clientWidth / 2) + }); }, + cursor: 'move', distance: 25, // min-distance for dragging connectToSortable: '#show_builder_table' }); @@ -172,10 +174,12 @@ var AIRTIME = (function(AIRTIME) { return container; }, - cursor: 'move', - cursorAt: { - left: Math.floor($(this).outerWidth() / 2) + create: function(event, ui) { + $(this).draggable("option", "cursorAt", { + left: Math.floor(this.clientWidth / 2) + }); }, + cursor: 'move', distance: 25, // min-distance for dragging connectToSortable: '.active-tab .spl_sortable' });