user activities height issue fixed
This commit is contained in:
parent
8922cd9f97
commit
e79ebb028b
1 changed files with 25 additions and 22 deletions
|
@ -299,7 +299,31 @@ $('#cover_info').show();
|
||||||
});
|
});
|
||||||
})(window);
|
})(window);
|
||||||
|
|
||||||
|
/* player height and editerpick activities height */
|
||||||
|
var WinWidHome = "";
|
||||||
|
function editpickVideos(){
|
||||||
|
WinWidHome = $(window).width();
|
||||||
|
if(WinWidHome > 991)
|
||||||
|
{
|
||||||
|
console.log("height "+WinWidHome);
|
||||||
|
var bannerHeight = $(".player-items").height();
|
||||||
|
bannerHeight = bannerHeight - 43;
|
||||||
|
console.log("height "+bannerHeight);
|
||||||
|
$(".user-activities").css({
|
||||||
|
"max-height" : bannerHeight+"px",
|
||||||
|
"overflow-y" : "auto"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
console.log("height "+WinWidHome);
|
||||||
|
|
||||||
|
$(".user-activities").css("max-height","auto");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* */
|
||||||
$(document).ready(function (){
|
$(document).ready(function (){
|
||||||
|
editpickVideos();
|
||||||
var id ='{$user.userid}';
|
var id ='{$user.userid}';
|
||||||
$('#subscribe_channel').on({
|
$('#subscribe_channel').on({
|
||||||
click: function(e){
|
click: function(e){
|
||||||
|
@ -416,28 +440,7 @@ $('#cover_info').show();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
/**/
|
/**/
|
||||||
/* player height and editerpick activities height */
|
|
||||||
var WinWidHome = "";
|
|
||||||
function editpickVideos(){
|
|
||||||
WinWidHome = $(window).width();
|
|
||||||
if(WinWidHome > 991)
|
|
||||||
{
|
|
||||||
console.log("height "+WinWidHome);
|
|
||||||
var bannerHeight = $(".player-items").height();
|
|
||||||
bannerHeight = bannerHeight - 43;
|
|
||||||
console.log("height "+bannerHeight);
|
|
||||||
$(".user-activities").css({
|
|
||||||
"max-height" : bannerHeight+"px",
|
|
||||||
"overflow-y" : "auto"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
console.log("height "+WinWidHome);
|
|
||||||
|
|
||||||
$(".user-activities").css("max-height","auto");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$('.playerRatio').load(function(){
|
$('.playerRatio').load(function(){
|
||||||
editpickVideos();
|
editpickVideos();
|
||||||
|
|
Loading…
Add table
Reference in a new issue