This topic was marked solved by Nao, on August 28th, 2013, 04:21 PM

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Flexbox, meet code
« 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...

📎 bug_flexbox_code.png - 81.75 kB, 1028x438, viewed 264 times.

When we unite against a common enemy that attacks our ethos, it nurtures group solidarity. Trolls are sensational, yes, but we keep everyone honest. | Game Memorial

kimikelku

  • Posts: 61
Re: Flexbox, meet code
« Reply #1, on March 9th, 2013, 11:13 PM »
I guess its only in chome, here firefox, opera and IE 10 everything is fine.

Arantor

  • As powerful as possible, as complex as necessary.
  • Posts: 14,278
Re: Flexbox, meet code
« Reply #2, on March 9th, 2013, 11:17 PM »
Did you specifically see the topic in question?

kimikelku

  • Posts: 61

live627

  • Should five per cent appear too small / Be thankful I don't take it all / 'Cause I'm the taxman, yeah I'm the taxman
  • Posts: 1,670
A confident man keeps quiet.whereas a frightened man keeps talking, hiding his fear.

Re: Flexbox, meet code
« Reply #5, 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


Dragooon

  • I can code! Really!
  • polygon.com has to be one of the best sites I've seen recently.
  • Posts: 1,841
Re: Flexbox, meet code
« Reply #6, on March 10th, 2013, 07:03 AM »
Seems fine to me on Chrome beta 26.0.1410.19
The way it's meant to be

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Flexbox, meet code
« Reply #7, 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.
Re: Flexbox, meet code
« Reply #8, 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..?

live627

  • Should five per cent appear too small / Be thankful I don't take it all / 'Cause I'm the taxman, yeah I'm the taxman
  • Posts: 1,670
Re: Flexbox, meet code
« Reply #9, 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.

Nao

  • Dadman with a boy
  • Posts: 16,082
Re: Flexbox, meet code
« Reply #10, on August 3rd, 2013, 03:48 PM »
Eh..? Even though Firefox doesn't have the flex codepath to begin with...? :unsure:
Re: Flexbox, meet code
« Reply #11, on August 3rd, 2013, 11:04 PM »
Can't reproduce in Firefox Aurora 24.0 Alpha 2...