Pre-requisite-
1. Go to browser setting:
chrome://settings/content/javascript?search=content
2. Disable the javascript.

Steps to Replicate -
1. Go to the admin site.
2. Go to /admin/structure/views/view/content/edit (or any page with a vertical scroll)
3. Scroll the page , the toolbar menu gets moved downwards.
4. Go to /admin/structure/views
5. Scroll the page , the toolbar menu gets moved downwards.

Current Result -
If you disable javascript and visit the views ui and views page than on scrolling the page , the toolbar menu gets scrolled down , moved on scrolling.

Expected Result-
It should be static.

Issue

Issue

Refer to the attached video for more clearance.

CommentFileSizeAuthor
#46 After-patch.png632.67 KBranjith_kumar_k_u
#46 Before-patch.png641.06 KBranjith_kumar_k_u
#46 3143749-D9-46.patch2.36 KBranjith_kumar_k_u
#44 after.png254.68 KBsmustgrave
#44 before.png261.04 KBsmustgrave
#42 interdiff_36-42.txt1.91 KBranjith_kumar_k_u
#42 3143749-42.patch2.36 KBranjith_kumar_k_u
#41 3143749-nr-bot.txt144 bytesneeds-review-queue-bot
#40 After_Patch_D10.1.x.PNG30.96 KBgaurav-mathur
#40 Before_Patch_D10.1.x.PNG29.98 KBgaurav-mathur
#36 interdiff_35-36.txt990 bytespooja saraah
#36 3143749-36.patch1.35 KBpooja saraah
#35 interdiff_14-35.txt481 bytesnitin shrivastava
#35 3143749-35.patch1.34 KBnitin shrivastava
#31 Screenshot from 2022-07-07 17-25-45.png84.42 KBomkar-pd
#30 Before-patch-disabled-js.png380.66 KBShubham Sharma 77
#30 After-patch-disabled-js.png371.6 KBShubham Sharma 77
#27 3143749_after_patch_bartick.png98.5 KBvikashsoni
#27 3143749_after_patch_claro.png67.21 KBvikashsoni
#27 3143749_after_patch_classy_pic.png188.83 KBvikashsoni
#27 3143749_after_patch_pic.png63.17 KBvikashsoni
#27 3143749_before_patch_pic.png123.97 KBvikashsoni
#24 Screen Shot 2020-07-31 at 8.11.51 AM.png290.23 KBtanubansal
#24 Screen Shot 2020-07-31 at 8.10.08 AM.png331.17 KBtanubansal
#21 deviceS9_seven.JPG43.29 KBpankaj.singh
#21 deviceS9_Stark.JPG53.19 KBpankaj.singh
#21 deviceiX_XS_Stark.JPG55.07 KBpankaj.singh
#21 deviceIpad_Stark.JPG85.07 KBpankaj.singh
#21 deviceS9_Bartik.JPG51.91 KBpankaj.singh
#21 deviceIpad_Bartik.JPG86 KBpankaj.singh
#21 devicei6_Claro.JPG41.04 KBpankaj.singh
#19 After-patch-stark.png287.15 KBpoojakural
#19 After-patch-seven.png274.67 KBpoojakural
#19 After-patch-classy.png390.6 KBpoojakural
#19 After-patch-claro.png175.94 KBpoojakural
#19 After-patch-bartik.png232.64 KBpoojakural
#19 After-classy-patch.png390.6 KBpoojakural
#16 Before-patch-toolbat-diabled-js.png123.97 KBpoojakural
#16 After-patch-toolbar-enabled-js.png63.17 KBpoojakural
#16 After-patch-toolbar-disabled-js.png63.17 KBpoojakural
#14 3143749-14.patch1.34 KBpoojakural
Issue_Page_1.png119.98 KBpriyanka.sahni
Issue_Page_2.png122.28 KBpriyanka.sahni
#2 Issue.mp43.61 MBpriyanka.sahni
before-disable-js-toolbar-scroll-issue.png215.44 KBpoojakural
after-disable-js-toolbar-fix-seven-theme.png144.2 KBpoojakural
after-disable-js-toolbar-fix-stable-theme.png82.76 KBpoojakural
after-disable-js-toolbar-scroll-issue-bartik-theme.png163.42 KBpoojakural
after-disable-js-toolbar-scroll-issue-claro-theme.png158.63 KBpoojakural
after-disable-js-toolbar-scroll-issue-classy-theme.png262.7 KBpoojakural
#8 3143749-6.patch1.98 KBpoojakural
#8 after-disable-js-toolbar-scroll-issue-bartiktheme.png163.42 KBpoojakural
#8 after-disable-js-toolbar-scroll-issue-clarotheme.png158.63 KBpoojakural
#8 after-disable-js-toolbar-scroll-issue-classyheme.png262.7 KBpoojakural
#8 after-disable-js-toolbar-scroll-issue-seventheme.png144.2 KBpoojakural
#8 after-disable-js-toolbar-scroll-issue-stableheme.png82.76 KBpoojakural
#8 before-disable-js-toolbar-scroll-issue.png215.44 KBpoojakural

Comments

priyanka.sahni created an issue. See original summary.

priyanka.sahni’s picture

Component: toolbar.module » views_ui.module
Issue summary: View changes
Issue tags: -ui +views ui
StatusFileSize
new3.61 MB
nod_’s picture

Looks like a toolbar issue, it happens everywhere when the page has a scroll. Happens on /admin/structure/menu/manage/admin too.

Also make sure to test on the latest dev version of Drupal, at the moment bugs should be added against the 9.1.x version :)

poojakural’s picture

Assigned: Unassigned » poojakural
poojakural’s picture

Status: »

Toolbar scrollbar issue has been fixed. Tested on Seven, Bartik, Claro, Classy, Stable.

Step to Test:
1. Go to browser setting:
chrome://settings/content/javascript?search=content
2. Disable the javascript.
3. Go to admin site.
4. Open any admin page. [/admin/structure/views/view/content/edit ]
5 Scroll the page , the toolbar menu stick at top

please refer the SS and patch

poojakural’s picture

nod_’s picture

Thanks will have a look. It's tricky because the changes looks scary but don't appear to break anything. need to figure this out a little.

nod_’s picture

Status: Needs review » Needs work

ok yep, does break something. On desktop version the tray is opened by default. Before the patch page title was shown, after the patch the toolbar tray is hidding the page title.

nod_’s picture

nod_’s picture

poojakural’s picture

Assigned: Unassigned » poojakural
poojakural’s picture

Assigned: poojakural » Unassigned
StatusFileSize
new1.34 KB

verified and checked the above issue. [On desktop version the tray is opened by default. Before the patch page title was shown, after the patch the toolbar tray is hidding the page title]
Yes toolbar tray was hiding after the patch.
Fixed this issue

Step to Test:
1. Go to browser setting:
chrome://settings/content/javascript?search=content
2. Disable the javascript.
3. Go to admin site.
4. Open any admin page. [/admin/structure/views/view/content/edit ]
5 Scroll the page , the toolbar menu stick at top
Tested on Bartik, Classy, Claro, Stark, Seven themes

poojakural’s picture

Status: Needs work » Needs review
poojakural’s picture

Rkumar’s picture

@poojakural Need to reverify the patch wrt to all themes. Will be helpful if you can attach similar proof as #8 with this updated patch.

poojakural’s picture

Assigned: Unassigned » poojakural
poojakural’s picture

StatusFileSize
new390.6 KB
new232.64 KB
new175.94 KB
new390.6 KB
new274.67 KB
new287.15 KB

@rumak - Tested 3143749-14.patch on Drupal 9.1.x-dev and 8.9.x themes. Tested themes Bartik, Seven, Start, Claro, Classy
Toolbar is working please check the SS

Rkumar’s picture

Assigned: poojakural » Unassigned

Thanks for the attached screenshot. Let's just have thorough testing wrt all screen sizes.

pankaj.singh’s picture

StatusFileSize
new41.04 KB
new86 KB
new51.91 KB
new85.07 KB
new55.07 KB
new53.19 KB
new43.29 KB

Tested the patch given in #14on different devices.

The issue is reproducible on Bartik and Stark theme except for the iPad device. SS attached for ref.

pankaj.singh’s picture

pankaj.singh’s picture

I Just figured out, on devices the toolbar menu is not static as expected/normal behavior. That means when the JS enabled the toolbar menu also scrolled up with the page scroll. So, on devices, it can't be static.

Whereas on Desktop, the patch given on #14 already fixed the issue as the SS attached on #19. RTBC+1

tanubansal’s picture

Below mentioned steps are tested after adding the patch #14
Pre-requisite-
1. Go to browser setting:
chrome://settings/content/javascript?search=content
2. Disable the javascript.

Steps to Replicate -
1. Go to the admin site.
2. Go to /admin/structure/views/view/content/edit (or any page with a vertical scroll)
3. Scroll the page , the toolbar menu gets moved downwards.
4. Go to /admin/structure/views
5. Scroll the page , the toolbar menu gets moved downwards.

Its working fine.
Screenshots are attached

This can be moved to RTBC

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

vikashsoni’s picture

Applied patch 3143749-14 working fine for reference sharing screenshot ....

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Shubham Sharma 77’s picture

StatusFileSize
new371.6 KB
new380.66 KB

Applied patch #14 applied successfully in drupal-9.5.x-dev. Working fine good for RTBC.
Thanks for the patch
For ref sharing screenshots...

omkar-pd’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new84.42 KB

Patch #14 solves the issue. Moving this to RTBC.

quietone’s picture

Issue tags: +Bug Smash Initiative

The latest patch is in #14. Screenshots for that patch were added in #16 and #19 for all themes, then in #21 for difference screen sizes. The screenshot submitted after that in #24, #27, #30 and #31 do not appear to me to be adding any new information. Therefore removing credit for those comments.

The patch still applied to 9.5.x, and there are no tests to run, so I am leaving this at RTBC.

alexpott’s picture

Status: Reviewed & tested by the community » Needs work
+++ b/core/modules/toolbar/css/toolbar.module.css
@@ -103,8 +103,11 @@
+  width: 100%;
+  left:0;
+  top:0;

+++ b/core/themes/stable/css/toolbar/toolbar.module.css
@@ -103,8 +103,11 @@
-body.toolbar-fixed .toolbar-oriented .toolbar-bar {
+body.toolbar-fixed .toolbar .toolbar-bar {
   position: fixed;
+  left:0;
+  right:0;
+  width: 100%;
 }

The fix looks sensible but I think the stable fix should match the toolbar.module.css fix... ie. right:0 should be top:0

Also we need patches for D10.x and D9.5 (no stable on D10). Also in the intervening years CSS standards have changed so this patch fails linting - if you do yarn run lint:css --fix from the core directory it will fix things for you.

nitin shrivastava’s picture

I am working on it.

nitin shrivastava’s picture

Status: Needs work » Needs review
StatusFileSize
new1.34 KB
new481 bytes

@alexpott,
Made changes as per commet #33.
Needs review.

pooja saraah’s picture

StatusFileSize
new1.35 KB
new990 bytes

Fixed failed commands on #35
Attached patch against Drupal 9.5.x

prasanth_kp’s picture

tried #36 patch in d9.5.x-dev, failed to fix issue

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

gaurav-mathur’s picture

Assigned: Unassigned » gaurav-mathur
gaurav-mathur’s picture

Assigned: gaurav-mathur » Unassigned
StatusFileSize
new29.98 KB
new30.96 KB

After disable the js from browser setting & appliing Patch #36 on Drupal 10.1.x-dev
The patch not work for me..
Refer to screenshots.

needs-review-queue-bot’s picture

Status: Needs review » Needs work
StatusFileSize
new144 bytes

The Needs Review Queue Bot tested this issue. It either no longer applies to Drupal core, or fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

ranjith_kumar_k_u’s picture

StatusFileSize
new2.36 KB
new1.91 KB
ranjith_kumar_k_u’s picture

Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +Needs Review Queue Initiative
StatusFileSize
new261.04 KB
new254.68 KB

Confirmed the issue in the issue summary and the patch #42 resolved it. Attaching screenshots.

Just FYI to help get the message out there.

Starting March 2023, simple rerolls, rebases, or merges will no longer receive issue credit. Only rerolls that address a merge conflict will be credited, and the merge conflict that was resolved must be documented in the text of an issue comment.
To receive credit for contributing to this issue, assist with other outstanding tasks or unaddressed feedback.
See the issue credit guidelines for more information.

larowlan’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: -views ui

I think we need separate patches for D9 and 10 here per #33

ranjith_kumar_k_u’s picture

StatusFileSize
new2.36 KB
new641.06 KB
new632.67 KB

Created a patch for D9 (from #42) and I can confirm that the patch is working fine on the 9.5 dev version

ranjith_kumar_k_u’s picture

Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Needs work

Just noticed in #42 this was added to claro also. Was it confirmed to be an issue there?

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.

quietone’s picture

Status: Needs work » Postponed

The Toolbar Module was approved for removal in #3476882: [Policy] Move Toolbar module to contrib.

This is Postponed. The status is set according to two policies. The Remove a core extension and move it to a contributed project and the Extensions approved for removal policies.

The deprecation work is in #3484850: [meta] Tasks to deprecate Toolbar module and the removal work in #3488828: [meta] Tasks to remove Toolbar module.

Toolbar will be moved to a contributed project before Drupal 12.0.0 is released.

quietone’s picture

Project: Drupal core » Toolbar
Version: main » 1.x-dev
Component: toolbar.module » Code
Status: Postponed » Needs work

Toolbar has moved to contrib