From 7479a64c95734a77b61067c2b14fa89ff9c752a4 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Fri, 13 Apr 2012 17:01:00 +0800 Subject: [PATCH] width changes in section page --- app/assets/javascripts/orbitdesktop.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/orbitdesktop.js b/app/assets/javascripts/orbitdesktop.js index 6060bcb2..738ffeee 100755 --- a/app/assets/javascripts/orbitdesktop.js +++ b/app/assets/javascripts/orbitdesktop.js @@ -299,14 +299,15 @@ var orbitDesktop = function(dom){ this.initializeSectionsManager = function(target){ o.currenthtml = target; o.currentface = "sections"; - var elementParent,element,groupWrapperWidth; + var elementParent,element; var bindHandlers = function(){ + var groupWrapperWidth = 0; $("div#sections .group").width(400); $("div#sections .group").each(function(){groupWrapperWidth+=$(this).width();}) groupWrapperWidth+=200; groupWrapperHeight = $(".group").height() + 20; - // groupWrapperHeight = (groupWrapperHeight > ($(window).height()-extraspace))? $(window).height()-extraspace:groupWrapperHeight; - $("div#sections #group_wrapper").css("width",groupWrapperWidth); + alert(groupWrapperWidth); + $("#group_wrapper").width(groupWrapperWidth); $("div#sections #group_wrapper .to_drop").sortable({ start:function(){ var $elementParent = $(this).parent().parent();