CC-3360 : timeline css

changed library search width calculation to be in library.js
This commit is contained in:
Naomi Aro 2012-03-22 23:31:18 +01:00
parent da02bb7076
commit 7ab0289d12
2 changed files with 12 additions and 13 deletions

View file

@ -106,10 +106,7 @@ function buildScheduleDialog (json) {
//subtract padding in pixels
widgetWidth = width - 60,
libWidth = Math.floor(widgetWidth * 0.5),
builderWidth = Math.floor(widgetWidth * 0.5),
libLength,
libType,
libFilter;
builderWidth = Math.floor(widgetWidth * 0.5);
dialog.find("#library_content")
.height(height - 115)
@ -149,13 +146,6 @@ function buildScheduleDialog (json) {
.css("max-height", height - 110 - 60);
dialog.dialog('open');
//calculate dynamically width for the library search input.
libLength = dialog.find("#library_display_length");
libType = dialog.find("#library_display_type");
libFilter = dialog.find("#library_display_filter");
libFilter.find("input").width(libFilter.width() - libType.width() - libLength.width() - 80);
}
function buildContentDialog (json){