quick cleanup
This commit is contained in:
parent
a16da4c3f1
commit
32dddab258
|
|
@ -1825,8 +1825,6 @@ function handleWindowResize() {
|
||||||
|
|
||||||
var h = rawh - $("#chatline").outerHeight();
|
var h = rawh - $("#chatline").outerHeight();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(!isPortrait){
|
if(!isPortrait){
|
||||||
//set default layout
|
//set default layout
|
||||||
if($("#videowrap").parent().attr("id") != "main"){
|
if($("#videowrap").parent().attr("id") != "main"){
|
||||||
|
|
@ -1838,11 +1836,6 @@ function handleWindowResize() {
|
||||||
$("#main").append($("#chatwrap"));
|
$("#main").append($("#chatwrap"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//if ($("body").hasClass("chatOnly")) {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$("#videowrap").outerHeight(rawh);
|
$("#videowrap").outerHeight(rawh);
|
||||||
$(".embed-responsive").outerHeight(rawh);
|
$(".embed-responsive").outerHeight(rawh);
|
||||||
$("#ytapiplayer").outerHeight(rawh);
|
$("#ytapiplayer").outerHeight(rawh);
|
||||||
|
|
@ -1873,26 +1866,20 @@ function handleWindowResize() {
|
||||||
|
|
||||||
rheight = (res[1]/res[0]) * parseInt(window.innerWidth);
|
rheight = (res[1]/res[0]) * parseInt(window.innerWidth);
|
||||||
|
|
||||||
//if(!$("#chatbar").is(":focus")){
|
$("#videowrap").outerHeight(rheight);
|
||||||
$("#videowrap").outerHeight(rheight);
|
$(".embed-responsive").outerHeight(rheight);
|
||||||
$(".embed-responsive").outerHeight(rheight);
|
$("#ytapiplayer").outerHeight(rheight);
|
||||||
$("#ytapiplayer").outerHeight(rheight);
|
h = h - rheight - $("#videowrap-header").outerHeight();
|
||||||
h = h - rheight - $("#videowrap-header").outerHeight();
|
rawh = rawh - rheight - $("#videowrap-header").outerHeight();
|
||||||
rawh = rawh - rheight - $("#videowrap-header").outerHeight();
|
|
||||||
//}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//if(!isPortrait || !$("#chatbar").is(":focus")){
|
$("#messagebuffer").outerHeight(h);
|
||||||
$("#messagebuffer").outerHeight(h);
|
$("#fpaneldiv").outerHeight(h - 1);
|
||||||
$("#fpaneldiv").outerHeight(h - 1);
|
$("#userlist").outerHeight(h);
|
||||||
$("#userlist").outerHeight(h);
|
$("#sidepanel").outerHeight(h);
|
||||||
$("#sidepanel").outerHeight(h);
|
$("#chatwrap").outerHeight(rawh);
|
||||||
$("#chatwrap").outerHeight(rawh);
|
sizeFPDiv();//resize fpanel
|
||||||
sizeFPDiv();//resize fpanel
|
|
||||||
//}
|
|
||||||
|
|
||||||
|
|
||||||
handleVideoResize();
|
handleVideoResize();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue