width changes in section page
This commit is contained in:
parent
957d4eaebb
commit
7479a64c95
|
@ -299,14 +299,15 @@ var orbitDesktop = function(dom){
|
||||||
this.initializeSectionsManager = function(target){
|
this.initializeSectionsManager = function(target){
|
||||||
o.currenthtml = target;
|
o.currenthtml = target;
|
||||||
o.currentface = "sections";
|
o.currentface = "sections";
|
||||||
var elementParent,element,groupWrapperWidth;
|
var elementParent,element;
|
||||||
var bindHandlers = function(){
|
var bindHandlers = function(){
|
||||||
|
var groupWrapperWidth = 0;
|
||||||
$("div#sections .group").width(400);
|
$("div#sections .group").width(400);
|
||||||
$("div#sections .group").each(function(){groupWrapperWidth+=$(this).width();})
|
$("div#sections .group").each(function(){groupWrapperWidth+=$(this).width();})
|
||||||
groupWrapperWidth+=200;
|
groupWrapperWidth+=200;
|
||||||
groupWrapperHeight = $(".group").height() + 20;
|
groupWrapperHeight = $(".group").height() + 20;
|
||||||
// groupWrapperHeight = (groupWrapperHeight > ($(window).height()-extraspace))? $(window).height()-extraspace:groupWrapperHeight;
|
alert(groupWrapperWidth);
|
||||||
$("div#sections #group_wrapper").css("width",groupWrapperWidth);
|
$("#group_wrapper").width(groupWrapperWidth);
|
||||||
$("div#sections #group_wrapper .to_drop").sortable({
|
$("div#sections #group_wrapper .to_drop").sortable({
|
||||||
start:function(){
|
start:function(){
|
||||||
var $elementParent = $(this).parent().parent();
|
var $elementParent = $(this).parent().parent();
|
||||||
|
|
Reference in New Issue