width changes in section page

This commit is contained in:
Harry Bomrah 2012-04-13 17:01:00 +08:00
parent 957d4eaebb
commit 7479a64c95
1 changed files with 4 additions and 3 deletions

View File

@ -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();