Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jayboodhun’s picture

Status: Active » Needs review
FileSize
476 bytes

The table heading was floating because the Toolbar at the top wasn't fixed to the top. Hence the 39px gap.
The toolbar stays fixed at the top only on screen sizes of 28.125em and above.

Not sure why this is, but i have removed this in the CSS, so the toolbar will be fixed to the top always.

Please review the patch

jayboodhun’s picture

Screenshot After Fixed Toolbar

jayboodhun’s picture

Assigned: jayboodhun » Unassigned
LewisNyman’s picture

Issue tags: +mobile, +d8mux, +mobile-novice, +d8mux-admin

Tagging, it would be good to get some insight from Jesse.

rteijeiro’s picture

Status: Needs review » Reviewed & tested by the community

Ok, I have tested the #1 patch and it seems to solve the table heading issue.

Tested with Chrome, Safari, Firefox, Opera and also in iPhone.

Great work! :)

aspilicious’s picture

Status: Reviewed & tested by the community » Needs review

Needs review from jess and I don't think it's a good idea to throw away the media query, moving it should be sufficient.

RainbowArray’s picture

I have to imagine the media query was in there because position fixed has had a history of bad bugs on mobile devices. Support has gotten somewhat better is my understanding: not sure if it good enough to drop the media query.

nod_’s picture

tableheaders were removed pretty much everywhere so it's less important now :D

Sam152’s picture

Sticky headers are still in core so I think this is still worth looking at. I can confirm the issue still does exist. Steps to reproduce:

  • Login with a user with access to a toolbar.
  • Create a table with a sticky header (I did this by creating a view of content).
  • Populate the table with enough content so that the top of your browser can scroll past the top of the table.
  • Resize your browser to be less than 610px wide.
  • Ensure you are scrolled to the top of the page.
  • Refresh and scroll down the page until the table header is stuck to the top of the screen and also "floating" 39px below the table.

I had a crack at a patch. I'll admit I was digging around in displace.js for a while trying to understand what was going on and I'm not entirely sure if it's the correct place to handle this, however it seems to entirely eliminate the bug.

My understanding is, by not considering the toolbar an element that displaces the viewport when it isn't position:fixed, we are eliminating the sticky table header bug which respects the viewport displacements.

Sam152’s picture

Further to the above, I just noticed the permissions table has a sticky header if anyone wants to review and test the above.

gavin.hughes’s picture

Tested using the permissions table and the issue exits, The patch needed to be a re-roll for it to apply and it fixes the issue,
I'm agree with Sam152 in #9 I'm not sure its the best place to fix the problem.

LewisNyman’s picture

Issue tags: +JavaScript, +CSS, +frontend
Wim Leers’s picture

Title: Table Headings Float instead of being sticky at the top on small screens » Sticky table headers float instead of being sticky at the top on narrow screens
Issue tags: +DrupalCamp Ghent 2014, +sprint, +Novice
Wim Leers’s picture

A novice contributor could:

  1. verify that this problem still exists, and if it doesn't, this issue can be closed
  2. if the problem still exists, test the patch in #11 and verify that it works
ikeigenwijs’s picture

Bug is still valid.

Does not happen always and immediately.
You have to narrow until a very smart view port -> cell phone size
Resize a lot to trigger the behavior

Changes the behavior of the toolbar to not be sticky on the header screen but to the head of the page.
The toolbar does not pass the new size-> 0 when going in small view port mode.

ikeigenwijs’s picture

Status: Needs review » Active
Wim Leers’s picture

Issue tags: -mobile-novice, -Novice

I looked at this together with ikeigenwijs and this is definitely not a Novice issue.

The key to understanding this issue is that the toolbar DOES scroll in wide viewports (i.e. stays visible at the top of the viewport), but DOES NOT scroll in narrow viewports (i.e. stays at the top of the document, and is not visible after scrolling down).

I suspect that the top-relative displacement stored in Drupal.displace by the toolbar doesn't get updated to *zero* by the Toolbar when it's a narrow viewport, which is wrong.

LewisNyman’s picture

@Wim Leers From a usability point of view, it actually makes a lot of sense to have the position fixed on narrow screens. Do you know why the decision was made not to fix it? That could be an easier fix. (assuming I understand the issue correctly)

Wim Leers’s picture

I don't know nor remember — I don't think I was involved in that decision.

I'd agree with you if it weren't for the fact that screen real estate on e.g. smartphones is very, very limited, which is why I think it works this way: having the toolbar be *always* visible would effectively make the available viewport smaller.

Wim Leers’s picture

Issue tags: -sprint
animaci’s picture

FileSize
40.75 KB

I have tested 11.patch in IE9 under Drupal core 8.0.6.
Without the patch the sticky header works in IE, just not nice, as it is not at the top of the page (should be fixed also I think so):
sticky_header_IE

With using 11.patch, the header can not be seen during scrolling.

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.6 was released on August 1, 2018 and is the final bugfix release for the Drupal 8.5.x series. Drupal 8.5.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.6.0 on September 5, 2018. (Drupal 8.6.0-rc1 is available for testing.)

Bug reports should be targeted against the 8.6.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.8.x-dev

Drupal 8.6.x will not receive any further development aside from security fixes. Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

nod_’s picture

Status: Active » Needs review
Issue tags: -JavaScript +JavaScript
Related issues: +#2516938: Set the toolbar to position fixed on mobile

Given #2516938: Set the toolbar to position fixed on mobile the problem might just go away. Would need confirmation if someone could test it. Thanks!

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

pankaj.singh’s picture

Assigned: Unassigned » pankaj.singh
pankaj.singh’s picture

Verified the issue on 8.9.x and reproducible, also tested by adjusting the width less than 610 px and getting the same issue.

Applied the patch but its failing on 8.9.x.

pankaj.singh’s picture

Assigned: pankaj.singh » Unassigned

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

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

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

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

Drupal 9.3.15 was released on June 1st, 2022 and is the final full bugfix release for the Drupal 9.3.x series. Drupal 9.3.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.4.x-dev branch from now on, and new development or disruptive changes should 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.

DeepaliJ’s picture

Assigned: Unassigned » DeepaliJ
DeepaliJ’s picture

Assigned: DeepaliJ » Unassigned

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

Drupal 9.4.9 was released on December 7, 2022 and is the final full bugfix release for the Drupal 9.4.x series. Drupal 9.4.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.5.x-dev branch from now on, and new development or disruptive changes should 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.

needs-review-queue-bot’s picture

Status: Needs review » Needs work
FileSize
161 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.

Version: 9.5.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. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.