Wedge

Public area => Bug reports => The Pub => Archived fixes => Topic started by: Arantor on March 9th, 2013, 10:55 PM

Title: Flexbox, meet code
Post by: Arantor on March 9th, 2013, 10:55 PM
As per the attached picture, something's funky with the code tag - the scrollbar appears in the wrong place (behind other text) and doesn't work properly in that it isn't selectable by mouse through no position I can find...
Title: Re: Flexbox, meet code
Post by: kimikelku on March 9th, 2013, 11:13 PM
I guess its only in chome, here firefox, opera and IE 10 everything is fine.
Title: Re: Flexbox, meet code
Post by: Arantor on March 9th, 2013, 11:17 PM
Did you specifically see the topic in question?
Title: Re: Flexbox, meet code
Post by: kimikelku on March 9th, 2013, 11:21 PM
Yep, this one: http://wedge.org/pub/plugins/7981/plugin-user-mentions-v1-0-9th-march-2013/msg286746/#msg286746
Also i tried on my tablet with android and in the default browser i cant see everything that is inside the [*code] dont know if you guys already worked in the phones/tablets support.

Edited by live627 to fix the link to target the actual message.
Title: Re: Flexbox, meet code
Post by: live627 on March 9th, 2013, 11:22 PM
Quote from kimikelku on March 9th, 2013, 11:13 PM
I guess its only in chome, here firefox, opera and IE 10 everything is fine.
Concur.. It's fine in FF at least.
Title: Re: Flexbox, meet code
Post by: Maxx on March 10th, 2013, 12:55 AM
Check with IE Chrome and FF and also stay put while shrinking those browser windows, the Flex is working great also , b no issue, but when I first opened Chrome it appeared for only a second then was good.

looks great!

regards,
maxx

Title: Re: Flexbox, meet code
Post by: Dragooon on March 10th, 2013, 07:03 AM
Seems fine to me on Chrome beta 26.0.1410.19
Title: Re: Flexbox, meet code
Post by: Nao on March 10th, 2013, 07:30 AM
Tested with 27.0.1426.0 canary.
Works fine when first loading.
Then I followed the link, and reproduced.
Then I hit F5, and it fixed itself.
I noticed that the scrollbar doesn't show up at DOMContentReady time, and then it shows up, with the text over it (just like the screenshot), and then instantly the text is pushed down.
Is there some JavaScript in action here..? I don't even remember.

I kept having problems with Chrome, this week. But it was on mobile. It actually ate 120 tabs on it, in the course of three crashes, and it never offered to restore them... It just kept the first few tabs up to the one I was trying to look at, and acted like it was 'normal'. So, yeah, Chrome Mobile is fantastic these days... Good thing that Opera Mobile switched to their butt-fucking stupid engine.

One of these days, I'll be doing my own Firefox or Chrome clone... We'll see :P
I think I want a Firefox Mobile clone with an ACTUAL session recovery feature (they don't have one at all), and I'll be happy on mobile.
Posted: March 10th, 2013, 07:28 AM

It's definitely a browser bug.
I can refresh the page anytime, I'll never be sure whether I find the 'fixed' page or the 'buggy' page.
Title: Re: Flexbox, meet code
Post by: Nao on August 3rd, 2013, 01:36 PM
I think I've finally fixed this bug...

I managed to understand what was wrong, when I noticed that John's latest post had two code blocks behaving differently: the first was okay, the second had the bug. The only difference I could see, is that the first one had a vertical scrollbar, and the second had a horizontal scrollbar. I tried adding a vertical scrollbar to the second post, and guess what, it worked...

As I said, it's a Chrome-only bug (more likely a WebKit bug, but I couldn't reproduce in Safari, so, until I'm told about it...), so I added a if (is_chrome) test in JS, and then modified all code blocks to force a vertical scrollbar (overflow-y: scroll), if a horizontal bar was present.
Really, REALLY... As simple as that. It fixes the scrollbar not being selectable, and the negative bottom margin on it.

Please test! e.g. Dragooon's post mentioned above, or John's post here: http://wedge.org/pub/bugs/8193/periodic-notifications-don-t-seem-to-work/msg290814/#msg290814
Posted: August 3rd, 2013, 01:30 PM

Please note that, very annoyingly, pressing Quick Edit on one of these posts and then Cancel, will restore the original bug. Well, I can't do much about that one, can I..?
Title: Re: Flexbox, meet code
Post by: live627 on August 3rd, 2013, 01:56 PM
Quote
Please note that, very annoyingly, pressing Quick Edit on one of these posts and then Cancel, will restore the original bug. Well, I can't do much about that one, can I..?
I see what you mean. That procedure also brings up the bug in Firefox.
Title: Re: Flexbox, meet code
Post by: Nao on August 3rd, 2013, 03:48 PM
Eh..? Even though Firefox doesn't have the flex codepath to begin with...? :unsure:
Title: Re: Flexbox, meet code
Post by: Nao on August 3rd, 2013, 11:04 PM
Can't reproduce in Firefox Aurora 24.0 Alpha 2...