Java Mailing List Archive

http://www.gg3721.com/

Home » users.tapestry »

Scrolling to make sure that a Zone is visible

Pierce T. Wetter III

2010-06-02

Replies:

Author LoginPost Reply

 It doesn't seem like the default zone update functions will ensure that the browser scrolls to show a zone.

  Ex:
        <t:zone t:id="popupZoneCurrentEmployee">
       </t:zone>

  I have that zone at the bottom of a long table, if you click at the top of a table, the zone gets populated, but you might not notice.

 I was able to implement scrolling with some relatively trivial javascript at the top of the block I use to fill the zone:
       <t:block t:id="employeeBlock">
          <script>
       document.location.hash=""; // this line is needed or a second click won't scroll
       document.location.hash="popupZoneCurrentEmployee";
   </script>
       
 I was wondering if:

    a. I'm doing something wrong.
    b. If I should contribute some sort of "scroll" effect to Tapestry.ElementEffect.
    c. If Zone should just get a new parameter: scroll, if set to true it will emit the above code in addition to the transition.

Pierce


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 gg3721.com - Jax Systems, LLC, U.S.A.