CC-3496 : PlaylistBuilder, NowPlaying -> GUI representation gets broken while being resized
This commit is contained in:
parent
6ddc8288be
commit
2ab6ea98a6
|
@ -744,7 +744,12 @@ var AIRTIME = (function(AIRTIME){
|
||||||
widgetHeight = viewport.height - 185;
|
widgetHeight = viewport.height - 185;
|
||||||
width = Math.floor(viewport.width - 110);
|
width = Math.floor(viewport.width - 110);
|
||||||
|
|
||||||
|
var libTableHeight = widgetHeight - 130;
|
||||||
|
|
||||||
$lib.height(widgetHeight)
|
$lib.height(widgetHeight)
|
||||||
|
.find(".dataTables_scrolling")
|
||||||
|
.css("max-height", libTableHeight)
|
||||||
|
.end()
|
||||||
.width(Math.floor(width * 0.55));
|
.width(Math.floor(width * 0.55));
|
||||||
|
|
||||||
$pl.height(widgetHeight)
|
$pl.height(widgetHeight)
|
||||||
|
|
|
@ -45,13 +45,23 @@ AIRTIME = (function(AIRTIME) {
|
||||||
widgetHeight = viewport.height - 180;
|
widgetHeight = viewport.height - 180;
|
||||||
screenWidth = Math.floor(viewport.width - 120);
|
screenWidth = Math.floor(viewport.width - 120);
|
||||||
|
|
||||||
|
var libTableHeight = widgetHeight - 130,
|
||||||
|
builderTableHeight = widgetHeight - 95;
|
||||||
|
|
||||||
//set the heights of the main widgets.
|
//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) {
|
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))
|
$builder.width(Math.floor(screenWidth * 0.5))
|
||||||
.find("#sb_edit")
|
.find("#sb_edit")
|
||||||
|
|
Loading…
Reference in New Issue