liqd / adhocracy

Adhocracy is a policy drafting and decision making software for distributed groups and open institutions.
GNU Affero General Public License v3.0
150 stars 37 forks source link

scrollintoview for showhide buttons #537

Open xi opened 11 years ago

xi commented 11 years ago

If a user clicks a showhide button there is no guarantee that the box that is to appear is currently scrolled into view. This might especially happen in connection with iframe overlays (#536).

Two fix this it would be great if the showhide javascript code could additionally:

  1. scroll so that the appearing box is visible
  2. scroll only if the box is currently not visible
  3. visibly scroll (instead of jumping to the position) so the user understands what happens

So far I found

nidico commented 11 years ago

Yeah, this is an actual issue within the iframes. If the jquery plugin works fine, use it, if not use any of the others.

xi commented 11 years ago

This is much less of a problem with the autoresizing introduced later in the iframe pull request (xi/adhocracy@702505a)