or
var canvasWidth, canvasHeight; |
function OnClientDropDownOpening(sender, args) { |
// We need to obtain the canvas width and height before the drop-down causes the canvas to expand. |
canvasWidth = document.documentElement.scrollWidth; |
canvasHeight = document.documentElement.scrollHeight; |
} |
function OnClientDropDownOpened(sender, args) { |
var button = args.get_item(); |
var buttonElem = button.get_element(); |
var dropDownContainer = button.get_dropDownElement().offsetParent; |
var offsetRight = dropDownContainer.offsetLeft + dropDownContainer.offsetWidth; |
if (canvasWidth < offsetRight) |
dropDownContainer.style.left = (dropDownContainer.offsetLeft - offsetRight + canvasWidth) + "px"; |
if (canvasHeight < dropDownContainer.offsetTop + dropDownContainer.offsetHeight) |
dropDownContainer.style.top = (dropDownContainer.offsetTop - dropDownContainer.offsetHeight - buttonElem.offsetHeight) + "px"; |
} |
set_expandDirection:function(){if(this.set_expandDirection()==value){return; |
IE 11 for windows was recently released for windows 7, while checking our site for problems we are seeing the same issues as this example. The vertical panel tabs have been shortened, chopping off text
http://demos.telerik.com/aspnet-ajax/splitter/examples/sp_firstlook/defaultcs.aspx