How to make the answer displaying without the scrollbar?(Arcade and Modern widget)
To remove the vertical scroll-bar from the embedded widget, set dynamicSize to true in your script as follows:
< !--do not modify this script -- >
< div id='NanorepEmbedContainer' >
< /div >
< script type='text/javascript' >
var _nRepData = _nRepData || [];
_nRepData['kb'] = ' YOUR_KB ';
/* API here */;
_nRepData['embed'] =
{
account:' YOUR_ACCOUNT_NAME ',
container: 'NanorepEmbedContainer',
width:400,
maxHeight:0 ,
dynamicSize: true ,
cdcFrame:'',
cdcVersion:3,
scriptVersion: '2.22.2.31'
};
(function(){
var windowLoadFunc =
function(){
var _nRepData = window._nRepData || [];
_nRepData['windowLoaded'] = true;
if (typeof(_nRepData['windowOnload']) === 'function')
_nRepData['windowOnload']();};
if (window.attachEvent)
window.attachEvent('onload', windowLoadFunc);
else if (window.addEventListener)
window.addEventListener('load', windowLoadFunc, false);
var sc = document.createElement('script');
sc.type = 'text/javascript';
sc.async = true;sc.defer = true;
sc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'my.Nanorep.com/widget/scripts/embed.js?account=ving';
var _head = document.getElementsByTagName('head')[0];_head.appendChild(sc);
})();< /script >