javascript - Dynamically position text within a td element of a table. -
i trying position text within viewport user scrolls along viewport text in column remains visible long possible. issue view port may smaller width of column in table. have close working here: http://jsfiddle.net/deterus/6eu24/15/
$rowdiv.scroll(function (e) { $headerdiv.css({ left: -$rowdiv[0].scrollleft + 'px' }); var thresh = $('.peek').width(); $.leftofscreen("#lookinme", ".peek", { threshold: thresh }).removeclass("textadjusttl").addclass("textadjusttr"); $.rightofscreen("#lookinme", ".peek", { threshold: thresh }).removeclass("textadjusttr").addclass("textadjusttl"); $.inviewportcenter("#lookinme", ".peek", { threshold: 0 }, thresh);
});
this able add or manipulate css needed keep row elements @ edge of viewport. classes align text right or left , doesnt allow sliding nature need. leads appreciated.
Comments
Post a Comment