Increasing the Number of Terms Shown in the Terms Picker on SharePoint 2013

PROBLEM:
The Term Set Picker displays only a few Terms and is requiring you to paginate, by clicking up arrow icon or down arrow icon to see the other Terms.

CAUSE:
There are hidden terms being returned on your result set. the out-of-the-box setup is limited to 10 per pagination.

SOLUTION:
Put a file in styles library like: custom.sharepoint.behaviours.js

contents:

/* belongs in styles library */
function CustomSPBehaviours() {
// console.debug(["custom.sharepoint.behaviours", Microsoft.SharePoint.Taxonomy]);
if(typeof(Microsoft.SharePoint.Taxonomy.Tree)=='undefined')
return;
Microsoft.SharePoint.Taxonomy.Tree.prototype.set_pageLimit(30);
};
SP.SOD.executeFunc('treecontrol.js', 'SP.ClientContext', CustomSPBehaviours);

add this line before the ending body tag of master.template

<script type="text/javascript" src="/sites/mysharepointsite/Style%20Library/custom.sharepoint.behaviours.js"></script>

add the same line to the the file (prior to the last ending asp:content tag) c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\WebTaggingDialog.aspx

the WebTaggingdialog change is needed because the Term Set Picker is a modal dialog box that initalizes treecontrol

http://sharepoint.stackexchange.com/questions/135624/increase-number-of-terms-shown-in-termstore/189715#189715