resize earlier

This commit is contained in:
j 2010-12-30 18:27:09 +05:30
parent b44809d91b
commit 20f4a18222

View File

@ -3,12 +3,13 @@ var padmaContainer;
$(function() { $(function() {
padmaContainer = $('#padmaSidebar'); padmaContainer = $('#padmaSidebar');
padmaContainer.data("currentVideo", false); padmaContainer.data("currentVideo", false);
$(window).resize(function() { function resize() {
var docWidth = $(document).width(); var docWidth = $(document).width();
var essayWidth = docWidth - 400; var essayWidth = docWidth - 400;
$('#leftWrapper').css("width", essayWidth); $('#leftWrapper').css("width", essayWidth);
}); }
$(window).trigger("resize"); resize();
$(window).resize(resize);
}); });
function setupPadmaLink(videoObj, data) { function setupPadmaLink(videoObj, data) {