CC-3741 : Timeline's cursors looks a little bit far from timeline
This commit is contained in:
parent
edaec54a5d
commit
96d2f657f7
|
@ -7,6 +7,7 @@ AIRTIME = (function(AIRTIME) {
|
||||||
$fs,
|
$fs,
|
||||||
widgetHeight,
|
widgetHeight,
|
||||||
screenWidth,
|
screenWidth,
|
||||||
|
resizeTimeout,
|
||||||
oBaseDatePickerSettings,
|
oBaseDatePickerSettings,
|
||||||
oBaseTimePickerSettings,
|
oBaseTimePickerSettings,
|
||||||
oRange,
|
oRange,
|
||||||
|
@ -47,7 +48,8 @@ AIRTIME = (function(AIRTIME) {
|
||||||
screenWidth = Math.floor(viewport.width - 90);
|
screenWidth = Math.floor(viewport.width - 90);
|
||||||
|
|
||||||
var libTableHeight = widgetHeight - 130,
|
var libTableHeight = widgetHeight - 130,
|
||||||
builderTableHeight = widgetHeight - 95;
|
builderTableHeight = widgetHeight - 95,
|
||||||
|
oTable;
|
||||||
|
|
||||||
if ($fs.is(':visible')) {
|
if ($fs.is(':visible')) {
|
||||||
builderTableHeight = builderTableHeight - 40;
|
builderTableHeight = builderTableHeight - 40;
|
||||||
|
@ -73,6 +75,9 @@ AIRTIME = (function(AIRTIME) {
|
||||||
.find("#sb_edit")
|
.find("#sb_edit")
|
||||||
.remove()
|
.remove()
|
||||||
.end();
|
.end();
|
||||||
|
|
||||||
|
oTable = $('#show_builder_table').dataTable();
|
||||||
|
oTable.fnDraw();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,9 +96,9 @@ AIRTIME = (function(AIRTIME) {
|
||||||
AIRTIME.showbuilder.fnServerData.start = oRange.start;
|
AIRTIME.showbuilder.fnServerData.start = oRange.start;
|
||||||
AIRTIME.showbuilder.fnServerData.end = oRange.end;
|
AIRTIME.showbuilder.fnServerData.end = oRange.end;
|
||||||
|
|
||||||
setWidgetSize();
|
|
||||||
AIRTIME.library.libraryInit();
|
AIRTIME.library.libraryInit();
|
||||||
AIRTIME.showbuilder.builderDataTable();
|
AIRTIME.showbuilder.builderDataTable();
|
||||||
|
setWidgetSize();
|
||||||
|
|
||||||
$libWrapper = $lib.find("#library_display_wrapper");
|
$libWrapper = $lib.find("#library_display_wrapper");
|
||||||
$libWrapper.prepend($libClose);
|
$libWrapper.prepend($libClose);
|
||||||
|
@ -242,7 +247,9 @@ AIRTIME = (function(AIRTIME) {
|
||||||
};
|
};
|
||||||
|
|
||||||
mod.onResize = function() {
|
mod.onResize = function() {
|
||||||
setWidgetSize();
|
|
||||||
|
clearTimeout(resizeTimeout);
|
||||||
|
resizeTimeout = setTimeout(setWidgetSize, 100);
|
||||||
};
|
};
|
||||||
|
|
||||||
return AIRTIME;
|
return AIRTIME;
|
||||||
|
|
Loading…
Reference in New Issue