Since no one else has mentioned a problem with this happening anywhere, my first thought was it must be only me or my Firefox browser. So I tried Chromium. Still happens.
It doesn’t happen every post, or all the time.
Maybe a media query at certain view-port widths?
Maybe the clearfix?
Using the dev tools I noticed the rule html { line-height: 19px; }
I tried changing it to 18px and that seemed to work.
But then I remembered that line-height should be unitless else expect unexpected problems.
No, but I noticed several strange rendering quirks yesterday which only seem to affect Firefox, and which I hadn’t noticed before, but which might be related to line-height.
Scrollbars are appearing in a couple of places where there is nothing to scroll (and they do nothing).
On the search box - but only on the “main” pages - “Latest”, “Category”, etc.
Both of those occur with text zoom set to 100%. Decreasing it to 90%, or increasing it to 133% clears the issue with the profile; decreasing to 90% clears the textbox issue, but increasing has no effect - scroll bar remains.
I couldn’t reproduce those at Meta Discourse, so I thought it was something to do with our customisations here, but this last issue affects both sites - and again, I only noticed it yesterday.
I’m not seeing either of those quirks but the code being used is a little dodgy in places (inline styles of height:100%, duplicated clearfix and overflow when not needed).
The scrollbar shown in your picture is weird because it is not the scrollbar from those elements. If you add overflow:auto to those elements you get the full scrollbar with arrows etc. Therefore it looks like some pseudo element is inserted into the mix that is too tall for the container and gets clipped. I couldn’t reproduce it even with forcing scrollbars everywhere.
The Admin logs show some scroll bars, but in fewer places than when I have add-ons enabled. IIRC. (I’ll need to double-check that when I restart.) Edit: Yes, that’s right.
They do look like my “normal” scollbars, and although there is nowhere to actually scroll, I can make the relevant element sort of “shudder” slightly up and down by attempting to use them.
Looks like a bug on your version/system possibly related to all those clearfixes.
Try injecting this code into firebug (add rule) and see if it makes a difference.
.panel-body {
height: auto !important;
}
I’ve noticed that after using Firebug the panel-body on the search menu gets a an inline css height written with js for some reason and the height is too small.
Firefox had a very old bug with overflow and scrollbars appearing but that was fixed years ago.
Aplogies for the late reply, @PaulOB. (If I don’t have time to do things immediately, I tend to forget. )
For some reason, I couldn’t get Firebug to let me add the rule, but I added to my user style-sheet - and it’s having no effect at all. The scrollbar is still there.
I’m seeing the scroll-bar even if I restart Firefox with all add-ons disabled.
However, it now seems my problem is with Discourse, rather than with SitePoint. When I first reported it, I couldn’t reproduce the scrollbars elsewhere, but now I’m also seeing them on Meta and on Matt’s sandbox. So irritating as it is for me, at least we know that SitePoint is not at fault.
Sometimes its easier to use a plugin like this.[quote=“TechnoBear, post:14, topic:227068”]
I’m seeing the scroll-bar even if I restart Firefox with all add-ons disabled.
[/quote]
These types of bugs are the hardest to debug unless they are evident on all systems. Sometimes its down to a very specific set of circumstances or set up and unless that can be reliably reproduced its almost impossible for someone else to debug.
My original concern was that it was something amiss with the SitePoint customisations. Now I know it’s not, I don’t expect anybody else to waste time over it. It’s not a big deal to live with. Thanks for your efforts, anyway.
No - only in Firefox, as I mentioned in my first post. (The clipping of the descenders in the title might be affecting Chromium marginally, too, but I can’t quite decide. )
Not that I can remember…
I certainly haven’t changed any settings in the last few weeks, and this issue has only arisen recently. FWIW, these are my Firefox settings:
(I tried changing the fonts to match Firefox, but still no scroll bars.)
Doing that produces scroll bars on the search box on all pages, and slightly increases the size of the search scrollbar on those pages where it was already showing.