 	
 	public class CustomMenuBar extends MenuBar
 	{
+		private static const MARGIN_WIDTH:int = 10; // same as in MenuBar.as
+
 		public function CustomMenuBar()
 		{
 			this.addEventListener(MenuEvent.MENU_SHOW, handleMenuShow);


package weave.ui.controlBars
{
	import flash.geom.Point;
	import flash.utils.setTimeout;
	

		{
			super.updateDisplayList(unscaledWidth, unscaledHeight);
			
			// remove hard-coded margins
			for each (var item:DisplayObject in menuBarItems)
				item.x -= MARGIN_WIDTH;
			
			// fixes bug where old menu doesn't go away.
			// We can't call Menu.hide() because it will still affect the MenuBar
			// even though the MenuBar no longer manages the old Menu.
