").appendTo("#macroMenu");
+
+ jQuery(".macro").each(function(){
+
+ jQuery("#innerc").append(this);
+ });
+
+
+ //only needed when we need to add scroll to macro menu
+ var maxHeight = 500;
+ var menu = jQuery("#macroMenu");
+ var container = jQuery("#mcontainer");
+ var menuHeight = menu.height();
+
+
+
+ if (menuHeight > maxHeight) {
+
+ jQuery("
More
").appendTo("#macroMenu");
+
+ menu.css({
+ height: maxHeight,
+ overflow: "hidden"
+ })
+
+ container.css({
+ height: maxHeight - 20,
+ overflow: "hidden"
+ });
+
+ var interval;
+ jQuery("#showmore").hover(function(e) {
+
+
+
+ interval = setInterval(function() {
+
+ var offset = jQuery("#innerc").offset();
+ var currentTop = jQuery("#innerc").css("top").replace("px","");
+
+
+ if(Number(currentTop) > -(menuHeight - 40))
+ {
+
+
+
+ jQuery("#innerc").css("top", currentTop -20);
+ }
+ }, 125);
+
+ }, function() {
+
+ clearInterval(interval);
+
+ });
+
+
+ jQuery("#splitButtonMacro").hover(function(e) {
+ jQuery("#innerc").css("top", 0)
+ });
+
+ }
//razor macro split button
jQuery('#sb').splitbutton({menu:'#codeTemplateMenu'});
@@ -217,7 +282,7 @@
@@ -235,6 +300,7 @@