CC-3496 : PlaylistBuilder, NowPlaying -> GUI representation gets broken while being resized

This commit is contained in:
Naomi Aro 2012-03-30 16:33:43 +02:00
parent 6ddc8288be
commit 2ab6ea98a6
2 changed files with 20 additions and 5 deletions

View File

@ -743,8 +743,13 @@ var AIRTIME = (function(AIRTIME){
viewport = AIRTIME.utilities.findViewportDimensions();
widgetHeight = viewport.height - 185;
width = Math.floor(viewport.width - 110);
var libTableHeight = widgetHeight - 130;
$lib.height(widgetHeight)
.find(".dataTables_scrolling")
.css("max-height", libTableHeight)
.end()
.width(Math.floor(width * 0.55));
$pl.height(widgetHeight)

View File

@ -45,19 +45,29 @@ AIRTIME = (function(AIRTIME) {
widgetHeight = viewport.height - 180;
screenWidth = Math.floor(viewport.width - 120);
var libTableHeight = widgetHeight - 130,
builderTableHeight = widgetHeight - 95;
//set the heights of the main widgets.
$lib.height(widgetHeight);
$builder.height(widgetHeight);
$builder.height(widgetHeight)
.find(".dataTables_scrolling")
.css("max-height", builderTableHeight)
.end()
.width(screenWidth);
if ($lib.filter(':visible').length > 0) {
$lib.width(Math.floor(screenWidth * 0.5));
$lib.width(Math.floor(screenWidth * 0.5))
.height(widgetHeight)
.find(".dataTables_scrolling")
.css("max-height", libTableHeight)
.end();
$builder.width(Math.floor(screenWidth * 0.5))
.find("#sb_edit")
.remove()
.end();
}
}
}
mod.onReady = function() {