Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Repro plan:
- Go to admin/people/permissions
- Scroll down a bit... no chance to read the table headers.
Comments
Comment #1
hass CreditAttribution: hass commentedComment #2
hass CreditAttribution: hass commentedPatch attached.
Comment #3
hass CreditAttribution: hass commentedComment #4
hass CreditAttribution: hass commentedMissing $
Comment #5
hass CreditAttribution: hass commentedNope... it's JS
Comment #6
hass CreditAttribution: hass commentedSomething with this patch is not fully correct or overlay module has a bug. If overlay is loaded it overlayed by the navbar. If navbar is larger your are not able to hit the X to close overlay.
Overlays
Drupal.overlayChild.behaviors.alterTableHeaderOffset()
is often not executed (or I have no clue when) andDrupal.settings.tableHeaderOffset
is undefined. I have no clue what's going wrong here. I guess overlay module has a bug.Comment #7
hass CreditAttribution: hass commentedSeen the same bug with new admin_menu on modules page, but the offset admin menu needs is less than navbar and the impact therefore not sooo heavy as it's still possible to reach the X to close the overlay, what is not possible with navbar.
Comment #8
jessebeach CreditAttribution: jessebeach commentedWe're working to fix this in D8 first.
#1847084: Measure/track displacing elements better + provide change events for them (fix overlay + toolbar)
Comment #9
hass CreditAttribution: hass commentedThis case was filed with Horizontal bar... and this bug is not visible in D8.
Comment #10
hass CreditAttribution: hass commentedTwo sreenshots with the problem:
Comment #11
jessebeach CreditAttribution: jessebeach commentedThis should be fixed in the 7.x-1.x branch.
Comment #12
Anonymous (not verified) CreditAttribution: Anonymous commentedI'm still seeing the issue in the 27 June 7.x-1.x-dev version.
Comment #13
hass CreditAttribution: hass commentedFixed in latest DEV.
Comment #15
saltednutI am reopening this as it still needs work. See screenshot using latest Navbar.
Comment #16
jessebeach CreditAttribution: jessebeach commentedComment #17
jessebeach CreditAttribution: jessebeach commentedhass gets credit here for noting the
Drupa.settings.tableHeaderOffset
method in his patches. I extended this approach with the Drupal.displace method that Navbar includes. And I'm only adding the library that implements this method and setting if the tableheader script is being loaded on the page.committed in b9ba113aa794fd8082dcddbee222cb3843ce0316, I'm leaving as needs review for verification of the fix.
Comment #18
jessebeach CreditAttribution: jessebeach commentedRemoving the rc-blocker tag.
Comment #19
hass CreditAttribution: hass commentedhttp://drupalcode.org/project/navbar.git/commit/b9ba113
Comment #20
artemln CreditAttribution: artemln commenteddrupal_add_library do not work on js alter when use ajax_delivery. See ajax_render. It is added only settings without file navbar-tableheader.js
This patch fix it
Comment #21
JonMcL CreditAttribution: JonMcL commentedHi. Patch at #20 worked well for me.
I was seeing problems with Views UI when there were AJAX commands coming back. Instead of them being processed correctly, exception was being thrown in Javascript (TypeError: 'undefined' is not a function (evaluating 'Drupal.navbar.height()') ) and then the JSON data was being displayed in browser (Safari).
Patch at #20 solves it for me. I suggest
Comment #22
jdanthinne CreditAttribution: jdanthinne commentedPatch #20 solves my Views + Ajax problems as well.
Comment #26
hefox CreditAttribution: hefox commented#20 fixed my issues also
Comment #27
griz CreditAttribution: griz commented#20 fixes the excruciating clash between this module and views_ui.
Comment #28
lelizondo CreditAttribution: lelizondo commented#20 fixes my issue with Panels and Panopoly when adding a new table field using IPE.
Comment #29
smd_ksu CreditAttribution: smd_ksu commentedPatch #20 breaks the tabs in the Media module WYSIWYG browser. Not the initial tabs but after clicking next in the media browser when uploading an image.
Attached are screenshots of the issue and comparison with the correct state.
Comment #30
sylus CreditAttribution: sylus commentedI needed to make a slight modification to hook_js_alter to only add Drupal.navbar is the navbar.js itself is added first. This let me use the admin_select module with admin_menu for users who wishes to use that combo instead.
Attaching patch.
Comment #31
sylus CreditAttribution: sylus commentedWhoops wrong patch.
Comment #32
grom358 CreditAttribution: grom358 commentedThis was also causing javascript errors in Drupal.tableHeader.eventhandlerRecalculateStickyHeader in Views UI. The patch resolved it.
Can I suggest the title of this issue be changed to reflect its todo with AJAX. It is only by chance that I found that this patch resolved the issue I was having.
Comment #33
saltednutre: #31 - I will review...
Comment #34
saltednutComment #35
gmclelland CreditAttribution: gmclelland commentedOn #34, I don't think this comment should be removed with the patch.
Comment #36
saltednutThat seems correct to me, actually.
"Only load the tableheader offset script if the core tableheader script and the navbar js itself is loaded"
Though for correct grammar one might say say, "Only load the tableheader offset script if the core tableheader script and the navbar js are loaded"
I feel like I am nitpicking there though.
Comment #37
gmclelland CreditAttribution: gmclelland commentedoops, sorry I misread the patch file in #31. Ignore my previous comment.
Comment #38
saltednut#34 tested and works.
@gmclelland if you wish to mark needs work with an updated comment, that's fine by me.
Trying to avoid patching this myself so I can still RTBC it :)
Comment #39
Elijah LynnCan confirm #31 applies and works and gets rid of the error in the console. We are using 7.x-1.4+9-dev for what it is worth.
Please consider this a 2nd RTBC although I am not sure why there are two comments referencing #34, #34 does not have a patch attached.
Comment #41
eshta CreditAttribution: eshta commented