Closed (fixed)
Project:
Drupal core
Version:
10.1.x-dev
Component:
toolbar.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
8 Mar 2018 at 17:18 UTC
Updated:
1 Mar 2023 at 10:24 UTC
Jump to comment: Most recent, Most recent file


Comments
Comment #2
chi commentedComment #3
chi commentedComment #4
borisson_I think this should also be fixed in core/modules/toolbar/css/toolbar.icons.theme.css as well as in the theme?
Comment #5
chi commentedI applied the change to the core/modules/toolbar/css/toolbar.icons.theme.css file.
Comment #6
borisson_The video added to this issue makes it clear that this change is helpful. Patch also looks good, great work @Chi
Comment #7
lauriiiAny steps for reproducing this bug? I tried with chrome and I couldn't see any flickering.
Comment #8
chi commented@lauriii have you enabled Big pipe module?
Comment #9
iyyappan.govindHi @Chi
I have enabled the Big pipe module but I couldn't see any flickering. How can I reproduce this issue?Thank you
Comment #10
chi commentedSo, I've tested it with Drupal 8.6.x, Chrome 63, BigPipe module enabled.
Are you able to reproduce #2952447: Initial page load for a BigPipe-loaded toolbar menu tray results in incorrect toolbar height?
Comment #12
ndf commentedWas send here by Chi from #2998451: Toolbar tray rendering can result "flickering" resizing of content area to accommodate open trays
4 gifs:
Drupal 8.7.x Standard profile:
1. Mobile: 2951268-below-mobile-breakpoint--without-patch.gif
2. Above mobile breakpoint: 2951268-above-mobile-breakpoint--without-patch.gif
See issue-summary.
Drupal 8.7.x Standard profile + Patch #5
3. Mobile: 2951268-below-mobile-breakpoint--with-patch-5.gif
4. Above mobile breakpoint: 2951268-above-mobile-breakpoint--with-patch-5.gif
Patch #5 works nicely, but only above the mobile breakpoint (
only screen and (min-width: 36em))Needs work because of gif 3.
@lauriii #7 This is just standard profile. I used Giphy capture on OSX+Chrome to record this.
Comment #13
ndf commentedComment #14
ndf commentedComment #15
ndf commentedI applied patch #5 and added the same 39px to the mobile
.toolbar-icon:beforeResult no toolbar-jumping anymore!
Comment #17
ndf commentedMy patch was wrong because I used drupal-composer-template for development. Let the gitlab integration come soon1
Comment #18
drintios commentedComment #19
drintios commentedAdded fix based on @ndf changes this also fixes jumping/flicker toolbar issues https://www.drupal.org/project/drupal/issues/2998451
Comment #20
drintios commentedComment #21
ndf commentedThanks drintios!
Can you provide a interdiff between #19 and 17? That makes reviewing easier.
I have tested your patch and it works nice for the account link (this issue), but it doesn't solve #2998451: Toolbar tray rendering can result "flickering" resizing of content area to accommodate open trays.
Regarding #2998451: Toolbar tray rendering can result "flickering" resizing of content area to accommodate open trays see my comment #12. Your patch solves the horizontal orientation. But when the toolbar is hidden or has vertical orientation there is a redraw.
We seem to be super close to fixing the account link icon here.
Let's don't make it extra hard by adding changes to the toolbar too. (and do that in 2998451).
Comment #22
ndf commentedComment #24
dwwRe-roll of #19 that applies to 8.7.x. Interdiff is confused, so this is from:
Otherwise, doesn't address #21 so still NW.
Cheers,
-Derek
Comment #25
dwwIf you're also using #2801501-5: Option for the Toolbar *not* to auto-open the "Manage" sub-menu? #24 is wrong. We always want min-height 39 in that case.
Comment #28
janmejaig commented#25 This patch cannot be applied in the Drupal 9.1.x , so needs reroll.
Comment #29
dwwComment #30
kishor_kolekar commentedRe-rolled against 9.1.x.
Comment #31
tanubansal commentedFlickering issue is resolved on 9.1 after adding patch #30
Comment #32
ranjith_kumar_k_u commentedreviewed 2951268-30.patch in drupal 9.1 dev version , Flickering issue is resolved .
Comment #33
ranjith_kumar_k_u commentedComment #34
quietone commentedThanks everyone for their efforts here and having a working patch. Yay!
Just a few things to do here.
I read the Issue Summary and it explains the problem. It also needs to include the proposed resolution and since this is a UI issue, it needs to have before and after screenshots. It will help reviewers as well if the Issue Summary template is used, there is a button for that if you use dreditor. Setting needs issue summary for that.
Next I looked at the patch, and it is all css/js so I have no comment on that.
Next I looked at the test results, https://www.drupal.org/pift-ci-job/1787674, and see that there are 56 coding standard errors. Setting NW for that.
Next I looked at the tags, this is marked needs manual testing and needs reroll. It looks like that has been done, so removing tags. Please, as you do work on an issue, update the tags. This will save time for anyone, for example, someone who is looking to reroll a patch and finds this issue. Takes time to skim the issue and then finds the reroll is done.
Comment #35
janmejaig commented#30 I have applied this patch and it was working fine for me .
Comment #38
dwwRFC
Thanks!
-Derek
Comment #40
vikashsoni commentedApplied #38 patch applied successfully
After patch in profile icon in toolbar min-height added
Thanks for the patch
For ref sharing screenshot...
Comment #43
gaurav-mathur commentedComment #44
gaurav-mathur commentedLast patch doesn't apply to target branch 10.1.x-dev, please reroll the patch.
Thank you.
Comment #45
bnjmnmI failed to find this issue before creating the very similar #3331531: Reduce toolbar reflow/repaint due to username lazy builder. My approach is different, but should be easier to review as it's just removing a few lines. Plus, it addresses inefficiencies with vertical and horizontal rendering, while the current solution here only addresses vertical - maybe @dww or someone else on this issue can weigh in on their preferred approach and we can close one of the issues and transfer credit.
Comment #46
lauriiiHere's a new approach that doesn't require specifying heights.
Comment #48
lauriiiNot sure where did #47 come from but looks like #46 passed 🤔
Comment #49
nayana_mvr commentedVerified the patch #47 and tested it on Drupal version 10.1.x. Now the vertical position of the account icon is not changing on page load and I have added the before and after screen recordings for reference.
Comment #50
tim.plunkettComment #51
lauriii#2632750: Interface previews/skeleton screens through optional "preview" or "placeholder" templates landed which means we could probably customize the placeholder for the account link.
Comment #52
bnjmnmPatch has the placeholder approach, and here's a video of it working on a throttled connections, so we can see that the icon remains in the correct location throughout the deliberately slow load process. https://youtu.be/JrU7Cvqr53c
Comment #53
bnjmnmComment #54
nayana_mvr commentedNot able to verify the patch #53 as it is showing error while applying the patch:
Comment #55
bnjmnm@Nayana Ramakrishnan just above your comment in #54 is clear evidence the patch applies fine. Whenever a patch is uploaded, Drupal's testbot applies that patch to the specified branch and runs tests. If there's a green box stating "pass", that means the patch is applying to Drupal fine.
Since it's proven that the patch is applying fine to Drupal 10.1.x, the issue is specific to you and doesn't need a comment here. If you need help with troubleshooting the patch not applying, Drupal Slack might be a good place to look as what you're dealing with is not specific to this issue. Ideally we avoid comments within an issue that are not specific to that issue (such as the one I just typed... 😐)
Comment #56
nayana_mvr commented@bnjmnm Thank you for pointing out that. I guess there was some issue with my repo. I created a new repo and applied the patch. Patch #53 applied cleanly and tested it on Drupal version 10.1.x. Attaching the before and after screen recordings for reference.
Comment #57
tim.plunkettReviewed this.
This change was surprising to me at first, but after re-reading #2632750: Interface previews/skeleton screens through optional "preview" or "placeholder" templates, it was a missed addition from that issue.
Due to the nature of this change (printing a space during rendering), and given the gaps in our testing infrastructure, this is not testable (other than manually).
Manual review shows that the vertical position is fixed!
Comment #59
lauriiiCommitted 905efbc and pushed to 10.1.x. Thanks!
Comment #60
wim leersLinked this as an example in the interface preview change record: https://www.drupal.org/node/3338948