Jonathan Weiss wrote:
> I have a div that has the `overflow: auto;` style and
that gets its
> content periodically updated by AJAX. In order to
adjust some styles I
> need to know if the div has the scrollbar present.
>
> Does anybody know how to determine this?
Try:
var has_scroll = (element.scrollHeight !=
element.clientHeight);
--
We develop, watch us RoR, in numbers too big to ignore.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe googlegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=
en
-~----------~----~----~----~------~----~------~--~---
|