kendo ui - How to increase vertical offset of tooltip position? -
i'm using kendo tooltips on graphic (within anchor link) 24px tall. accordingly, when tooltip shows (default position of bottom), covers bottom third of graphic , bottom third of graphic can't clicked.
i can following:
.k-tooltip { margin-top: 8px; }
but problem if tooltip on graphic @ bottom of page, position "top" instead of "bottom" it'll covering 1/2 graphic instead of third because it's still being pushed down 8px.
what i'd if position bottom, margin-top 8px, if position top, the margin-bottom 8px.
thanks can provide!
billy mccafferty
would 1 you? http://dojo.telerik.com/amoze/5
var tooltip = $("#demo").kendotooltip({ filter: "a", show: function (e) { var position = e.sender.options.position; if (position == "bottom") { e.sender.popup.element.css("margin-top", "10px"); } else if(position == "top") { e.sender.popup.element.css("margin-bottom", "10px"); } } }).data("kendotooltip");
Comments
Post a Comment