Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Meta

Extra "bar" in the post

+2
−0

GitHub issue: https://github.com/codidact/qpixel/issues/802


I have experimented with various things but cannot get rid of an extra "bar" in my recent answer (now edited by putting the expression in another separate line to avoid the bar) on the main site:

snapshot of the mentioned post

It did not show up in the preview mode.

I am wondering if it is due to some formatting trick that I don't know or if it is a bug.

History
Why does this post require moderator attention?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

Possible experiment (2 comments)

1 answer

+2
−0

Probably a scroll bar

This appears to be a horizontal scroll bar. You can confirm this by attempting to drag it left and right with the mouse (or finger on touch screen). The paragraph above it should move correspondingly.

Affected operating systems and browsers

I do not see the bar when viewing the answer myself, neither in the edit preview nor the rendered answer, on desktop or mobile, at any zoom level. I'm using Firefox on Fedora Linux (desktop) and Android (mobile). Could you mention on how many devices you see the bar, and which operating systems and browsers are affected? It would also be useful if anyone else reading this could open the answer on their device(s) and mention which ones show the bar and which don't (both are useful info).

Maybe inline MathJax related

Usually a horizontal scroll bar only shows for a wide code block or a wide MathJax block, not for a paragraph because paragraphs wrap onto the next line. I notice that the paragraph includes inline MathJax, and that the first line of the paragraph ends in an inline MathJax formula, but on my devices that inline MathJax formula does not extend far enough to trigger a scroll bar. If I gradually narrow the window width, the formula moves down to the second line when there is no longer room for it, rather than causing a scroll bar.

My best guess would be that there is some difference in layout on your machine that allows the scroll bar to appear before the point that the formula would be moved to the next line. The fonts look the same on your machine as mine to my eye, but it might be worth checking which fonts are in use in case there is a subtle difference.

Wide inline MathJax

Not directly related, as you are seeing a horizontal scroll bar even with narrow inline MathJax that can easily fit on one line, but I tested wide inline MathJax just to see if that could trigger a horizontal scroll bar on my machine.

If I put inline MathJax that is wider than a line into a paragraph, it still does not trigger a scroll bar in the edit preview, instead just extending off the right hand side of the paragraph and eventually going off screen if it is long enough. On my machine the entire page then gets a horizontal scroll bar, but the paragraph does not. However, once I save the edit, the rendered answer has the wide inline MathJax truncated to the right, and the paragraph has a horizontal scroll bar which allows scrolling right to see the rest of the formula. See the next paragraph for an example (you can start to edit this answer if you want to see how it looks in the edit preview).

Test paragraph $ x\mapsto f(x,0) x\mapsto f(x,0) x\mapsto f(x,0) x\mapsto f(x,0) x\mapsto f(x,0) x\mapsto f(x,0) x\mapsto f(x,0) x\mapsto f(x,0) x\mapsto f(x,0) x\mapsto f(x,0) x\mapsto f(x,0) x\mapsto f(x,0) x\mapsto f(x,0) x\mapsto f(x,0) x\mapsto f(x,0) x\mapsto f(x,0) x\mapsto f(x,0) x\mapsto f(x,0) x\mapsto f(x,0) x\mapsto f(x,0) x\mapsto f(x,0) x\mapsto f(x,0) x\mapsto f(x,0) x\mapsto f(x,0)$ with wide inline MathJax. This seems to have the same behaviour on my machine as the reported answer with narrow inline MathJax does on your machine. It would be interesting to hear how it appears on other people's machines.

Note that on my machine the horizontal scroll bar in the previous paragraph is only visible when hovering the mouse cursor over the paragraph. Similarly on mobile, the horizontal scroll bar is only visible after dragging left or right on the touch screen on that particular paragraph.

History
Why does this post require moderator attention?
You might want to add some details to your flag.

0 comment threads

Sign up to answer this question »