Ticket #1014 (new enhancement)
Page splitters should scroll into view when opened
| Reported by: | michaeltwofish | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 0.9 |
| Component: | Habari Core Software | Version: | SVN |
| Keywords: | UI admin pagesplitter has_fix | Cc: |
Description
If a user clicks a page splitter near the bottom of the window, it will scroll off the bottom. The user obviously wants to see the contents of the splitter, so it should scroll into view. Nothing should move if the splitter is already in view.
I had a quick play with jQuery's scrollTop function, but couldn't get it to do anything useful in Firefox (may be my fault).
Change History
comment:2 follow-up: ↓ 6 Changed 17 months ago by anon
document.getElementById('tab_publish_controls_1').scrollIntoView(0);
and
document.getElementById('tab_publish_controls_2').scrollIntoView(0);
but i dunno where to put these
comment:5 in reply to: ↑ 1 Changed 15 months ago by rickc
Replying to michaeltwofish:
The intoViewport plugin scrolls the splitter into view perfectly when added as a show() parameter to the tabs() call in admin.js but has an ugly jumping effect when closing the tab.
Unfortunately, it appears to be GPL, too.
comment:6 in reply to: ↑ 2 Changed 15 months ago by rickc
Replying to anon:
document.getElementById('tab_publish_controls_1').scrollIntoView(0);
and
document.getElementById('tab_publish_controls_2').scrollIntoView(0);
but i dunno where to put these
scrollIntoView() works, but it's more of a jump into view, which is kind of jarring.

The intoViewport plugin scrolls the splitter into view perfectly when added as a show() parameter to the tabs() call in admin.js but has an ugly jumping effect when closing the tab.