Hi Stucture_Ulf, I think that it could be simply done with an Effect.Morph using the margin of the table to set it's position inside the div. So when need to center the specified row on the div, just calculate it's position (It's perhaps the difficult part) inside the div, and set margin accordingly to center it. When saying it could be the difficult part, it's because I never use table, because you should be able to do the same with pure div.
second think, I did not catch why you should not use scroll because of the overflow hidden property ?? but I could miss something :(( -- david On 26 juin, 12:08, Stucture_Ulf <[email protected]> wrote: > Hello! > > I have a table, placed in a div, with height specified and overflow > set to hidden. This table is used to list several posts and the > details for each post is placed under the div containing the table. > > I'm looking for a solution on how to scroll the list through prototype/ > javascript, I want highlight a certain row in the table and move so > that this row is centered in the table div. Using the .scroll() method > won't work, because of the overflow hidden. I'm looking for a way to > shift/move the scroll bar through script. Would be grateful for any > tips or hints. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---
