rem: size_x2 = -objectArrayElement.width; 
add: setSizeContainer.x2 = -objectArrayElement.width; 
context: function setSizeArray(objectName, objectArrayElement, rleft, rtop, rright, rbottom){	// Use this function as a shortcut to change the size of a GUI control, via an array containing x, y, width and height. 	switch (rleft)	{		case left_screen:			size_x1 = objectArrayElement.x;		break;		case right_screen:			size_x1 = -objectArrayElement.x-objectArrayElement.width;		break;	}	switch (rtop)	{		case top_screen:			size_y1 = objectArrayElement.y;		break;		case bottom_screen:			size_y1 = -objectArrayElement.y-objectArrayElement.height;		break;	}	switch (rright)	{		case left_screen:			size_x2 = objectArrayElement.x+objectArrayElement.width;		break;		case right_screen:			if (rleft == right_screen)				size_x2 = -objectArrayElement.x;			else				size_x2 = -objectArrayElement.width;						break;	}	switch (rbottom)	{		case top_screen:			size_y2 = objectArrayElement.y+objectArrayElement.height;		break;		case bottom_screen:			if (rtop == bottom_screen)				size_y2 = -objectArrayElement.y;			else				size_y2 = -objectArrayElement.height;		break;	}	getGUIObjectByName(objectName).size = new GUISize(size_x1, size_y1, size_x2, size_y2, rleft, rtop, rright, rbottom);/*	if (rleft == left_screen && rtop == top_screen && rright == left_screen && rbottom == top_screen)		// Object is aligned to top left.		getGUIObjectByName(objectName).size = new GUISize(objectArrayElement.x, objectArrayElement.y, objectArrayElement.x+objectArrayElement.width, objectArrayElement.y+objectArrayElement.height, rleft, rtop, rright, rbottom);	else	if (rleft == left_screen && rtop == bottom_screen && rright == left_screen && rbottom == bottom_screen)		// Object is aligned to bottom left.		getGUIObjectByName(objectName).size = new GUISize(objectArrayElement.x, -objectArrayElement.y-objectArrayElement.height, objectArrayElement.x+objectArrayElement.width, -objectArrayElement.y, rleft, rtop, rright, rbottom);	else	if (rleft == right_screen && rtop == top_screen && rright == right_screen && rbottom == top_screen)		// Object is aligned to top right.		getGUIObjectByName(objectName).size = new GUISize(-objectArrayElement.x-objectArrayElement.width, objectArrayElement.y, -objectArrayElement.x, objectArrayElement.y+objectArrayElement.height, rleft, rtop, rright, rbottom);	else	if (rleft == right_screen && rtop == bottom_screen && rright == right_screen && rbottom == bottom_screen)		// Object is aligned to bottom right.		getGUIObjectByName(objectName).size = new GUISize(-objectArrayElement.x-objectArrayElement.width, -objectArrayElement.y-objectArrayElement.height, -objectArrayElement.x, -objectArrayElement.y, rleft, rtop, rright, rbottom);	else	if (rleft == left_screen && rtop == top_screen && rright == right_screen && rbottom == top_screen)		// Object is aligned between left top and right top.		getGUIObjectByName(objectName).size = new GUISize(objectArrayElement.x, objectArrayElement.y, -objectArrayElement.width, objectArrayElement.y+objectArrayElement.height, rleft, rtop, rright, rbottom);	else	if (rleft == left_screen && rtop == top_screen && rright == right_screen && rbottom == bottom_screen)		// Object is aligned between left top and right bottom.		getGUIObjectByName(objectName).size = new GUISize(objectArrayElement.x, objectArrayElement.y, -objectArrayElement.width, -objectArrayElement.height, rleft, rtop, rright, rbottom);	else	if (rleft == left_screen && rtop == bottom_screen && rright == right_screen && rbottom == bottom_screen)		// Object is aligned between left bottom and right bottom.		getGUIObjectByName(objectName).size = new GUISize(objectArrayElement.x, -objectArrayElement.y-objectArrayElement.height, -objectArrayElement.width, objectArrayElement.y, rleft, rtop, rright, rbottom);	else	if (rleft == left_screen && rtop == top_screen && rright == left_screen && rbottom == bottom_screen)		// Object is aligned between left top and left bottom.		getGUIObjectByName(objectName).size = new GUISize(objectArrayElement.x, objectArrayElement.y, objectArrayElement.x+objectArrayElement.width, -objectArrayElement.height, rleft, rtop, rright, rbottom);	else	if (rleft == left_screen && rtop == mid_screen && rright == left_screen && rbottom == mid_screen)		// Object is aligned to middle left.		getGUIObjectByName(objectName).size = new GUISize(objectArrayElement.x, objectArrayElement.y, objectArrayElement.x+objectArrayElement.width, objectArrayElement.y+objectArrayElement.height, rleft, rtop, rright, rbottom);*/} 
meta: 1070	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1070/79e56cf113523b71f02d6891bece166f364742e7/functions_utility_coord.js/clean/binaries/data/mods/official/gui/test/functions_utility_coord.js