#22520 closed defect (bug) (fixed)
Toolbar JS with jQuery doesn't match non-jQuery behavior with hashes (e.g. read more link)
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.5 | Priority: | normal |
| Severity: | normal | Version: | 3.3 |
| Component: | Toolbar | Keywords: | has-patch |
| Focuses: | Cc: |
Description
In /wp-includes/js/admin-bar.js, we have a block that uses jQuery if available and then falls back to another block of plain JS if not. The JS version does the following to help prevent the toolbar from covering up content when a hash is present in the URL (w = window):
if ( w.location.hash ) w.scrollBy(0,-32);
The jQuery version does not seem to do the same, but it should. Patch is forthcoming.
Attachments (2)
Change History (6)
#2
@
13 years ago
patch-more-toolbar-offset-v1.diff works for me. patch-more-toolbar-offset.diff appears more ideal on first glance (moving it out of the if/else block since it's used in both places) but doesn't actually work, I suppose because it no longer waits until load.
Note: See
TracTickets for help on using
tickets.
Related: #18299