Quantcast
Channel: Web Forms
Viewing all articles
Browse latest Browse all 23244

I fatch the problems show diffrent diffrent location popup mozila firefox and chrome

$
0
0

var element = document.getElementById(sender._element.id);
    var bound = Sys.UI.DomElement.getBounds(element);
    var ypos = bound.y;
    var bodyheight = document.body.clientHeight;
    var divelement = document.getElementById(sender._completionListElementID);
    var totalheight = new Number();
    


    if (parseInt(bodyheight) < parseInt(divheight+ypos))
    {
        sender._popupBehavior.set_positioningMode(AjaxControlToolkit.PositioningMode.TopLeft);
        totalheight = parseInt(bound.y) - parseInt(divheight) - 12;
       
 
    }
    else
    {
        sender._popupBehavior.set_positioningMode(AjaxControlToolkit.PositioningMode.BottomLeft);
        totalheight = parseInt(bound.y) + parseInt(bound.height);
    }


Viewing all articles
Browse latest Browse all 23244

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>