Liferay.Util.actsAsAspect(Liferay.Dock);Liferay.Dock.before("_toggle",function(c){var a=this;if(c=="show"){var b=0;a._dockList.parents(".lfr-dock-custom-parent:first").find(".child-menu").each(function(){b+=this.offsetWidth});a._dockList.width(b-2)}});