Layout fixes for library and Now Playing screens

This commit is contained in:
Albert Santoni 2015-04-29 13:41:52 -04:00
parent 49456318ff
commit f382b1338f
2 changed files with 6 additions and 6 deletions

View File

@ -1445,7 +1445,7 @@ var AIRTIME = (function(AIRTIME){
initialEvents();
setUpPlaylist();
};
function setWidgetSize() {
viewport = AIRTIME.utilities.findViewportDimensions();
widgetHeight = viewport.height - 185;
@ -1458,7 +1458,7 @@ var AIRTIME = (function(AIRTIME){
.find(".dataTables_scrolling")
.css("max-height", libTableHeight)
.end()
.width(Math.floor(width * 0.55));
.width(Math.floor(width * 0.54));
$pl.height(widgetHeight)
.width(Math.floor(width * 0.45));

View File

@ -53,8 +53,8 @@ AIRTIME = (function(AIRTIME) {
function setWidgetSize() {
viewport = AIRTIME.utilities.findViewportDimensions();
widgetHeight = viewport.height - 180;
screenWidth = Math.floor(viewport.width - 40);
screenWidth = Math.floor(viewport.width - 50);
var libTableHeight = widgetHeight - 175,
builderTableHeight = widgetHeight - 95,
oTable;
@ -77,9 +77,9 @@ AIRTIME = (function(AIRTIME) {
if ($lib.filter(':visible').length > 0) {
$lib.width(Math.floor(screenWidth * 0.48));
$lib.width(Math.floor(screenWidth * 0.47));
$builder.width(Math.floor(screenWidth * 0.48))
$builder.width(Math.floor(screenWidth * 0.47))
.find("#sb_edit")
.remove()
.end()