Author Login
Post 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)