CC-4948: Library -> library loses have its width when window is resized
-fixed
This commit is contained in:
parent
1a36953d82
commit
e2e45b0160
|
@ -1072,20 +1072,28 @@ var AIRTIME = (function(AIRTIME){
|
||||||
};
|
};
|
||||||
|
|
||||||
function setWidgetSize() {
|
function setWidgetSize() {
|
||||||
viewport = AIRTIME.utilities.findViewportDimensions();
|
viewport = AIRTIME.utilities.findViewportDimensions();
|
||||||
widgetHeight = viewport.height - 185;
|
widgetHeight = viewport.height - 185;
|
||||||
width = Math.floor(viewport.width - 80);
|
width = Math.floor(viewport.width - 80);
|
||||||
|
|
||||||
var libTableHeight = widgetHeight - 130;
|
|
||||||
|
|
||||||
$lib.height(widgetHeight)
|
var libTableHeight = widgetHeight - 130;
|
||||||
.find(".dataTables_scrolling")
|
|
||||||
.css("max-height", libTableHeight)
|
if (!$pl.is(':hidden')) {
|
||||||
.end()
|
$lib.height(widgetHeight)
|
||||||
.width(Math.floor(width * 0.55));
|
.find(".dataTables_scrolling")
|
||||||
|
.css("max-height", libTableHeight)
|
||||||
$pl.height(widgetHeight)
|
.end()
|
||||||
.width(Math.floor(width * 0.45));
|
.width(Math.floor(width * 0.55));
|
||||||
|
|
||||||
|
$pl.height(widgetHeight)
|
||||||
|
.width(Math.floor(width * 0.45));
|
||||||
|
} else {
|
||||||
|
$lib.height(widgetHeight)
|
||||||
|
.find(".dataTables_scrolling")
|
||||||
|
.css("max-height", libTableHeight)
|
||||||
|
.end()
|
||||||
|
.width(width + 40);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mod.onReady = function() {
|
mod.onReady = function() {
|
||||||
|
|
Loading…
Reference in New Issue