Ticket #1014 (new enhancement)

Opened 3 years ago

Last modified 15 months ago

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:1 follow-up: ↓ 5 Changed 2 years ago by 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.

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:3 Changed 16 months ago by anon

  • Keywords has_fix added

comment:4 Changed 16 months ago by anon

  • Milestone changed from Undetermined to 0.9

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.

comment:7 Changed 15 months ago by anon

these lines are working just fine (i just dunno where to put them)

maybe you can add a smoothing effect using in-between jquery trickery (imo not necessary)

Last edited 15 months ago by anon (previous) (diff)
Note: See TracTickets for help on using tickets.