| View previous topic :: View next topic |
| Author |
Message |
JSLover
Joined: 20 Dec 2004 Posts: 634 Location: LooseChange911.com The WTC bldgs shouldn't have fallen that fast. The official story is a lie!
|
Posted: Wed Jan 27, 2010 7:19 am Post subject: Forum code blocks hide underscores in last line... |
|
|
Test...
| Code: | | This_is_code_with_underscores |
...OK?...that works right?...
| Code: | Line
Line
Line
Line
Line
Line
Line
Line
Line
Line
Line
Line
Line
Line
Line
This_is_code_with_underscores |
...when you expand that, the underscores look like spaces...this is due to expanded code blocks getting...overflow:hidden...
I propose editing...
...from...
| Code: | if (d.offsetHeight == p[2]) {
d.style.height = '100%'; d.style.overflow = 'hidden'; t.innerHTML = t.innerHTML.replace(l[0], l[1]);
} |
...to...
| Code: | if (d.offsetHeight == p[2]) {
d.style.height = '100%'; d.style.overflow = ''; t.innerHTML = t.innerHTML.replace(l[0], l[1]);
} |
...also should I mention there is still no workaround for the lack of Copy...my textarea approach is still available & functional...
[Moved from Bug Reports forum. ~jaco0646] _________________
Home • Click image! • Blog |
|
| Back to top |
|
 |
SoLong&Thx4AllTheFish
Joined: 27 May 2007 Posts: 4999
|
|
| Back to top |
|
 |
IE7 User Guest
|
Posted: Thu Jan 28, 2010 6:50 am Post subject: Re: Forum code blocks hide underscores in last line... |
|
|
| JSLover wrote: | | ...when you expand that, the underscores look like spaces... | Speak for yourself. |
|
| Back to top |
|
 |
Kellianjaxon
Joined: 04 Jan 2008 Posts: 102
|
Posted: Fri Jan 29, 2010 12:40 am Post subject: |
|
|
| hugov wrote: | | a) When I expand the _ are still there (FF 3.5.7, WinXP) |
I have both the same FF and OS versions and expanding with the code scroll bar in the top position removes underscores. However, if I scroll the code so that the last line is visible and expand, the underscores remain. |
|
| Back to top |
|
 |
SoLong&Thx4AllTheFish
Joined: 27 May 2007 Posts: 4999
|
Posted: Fri Jan 29, 2010 7:11 am Post subject: |
|
|
| Kellianjaxon wrote: | | hugov wrote: | | a) When I expand the _ are still there (FF 3.5.7, WinXP) |
I have both the same FF and OS versions and expanding with the code scroll bar in the top position removes underscores. However, if I scroll the code so that the last line is visible and expand, the underscores remain. |
Confirmed, I must have scrolled first, gono back to the top then clicked expand and saw the underscores, if you click expand directly they seem to be missing. _________________ AHK Wiki FAQ
TF : Text files & strings lib, TF Forum |
|
| Back to top |
|
 |
maniac
Joined: 28 Aug 2009 Posts: 267
|
Posted: Fri Jan 29, 2010 2:33 pm Post subject: |
|
|
| Confirmed on Opera 10.10 |
|
| Back to top |
|
 |
tank
Joined: 21 Dec 2007 Posts: 3700 Location: Louisville KY USA
|
Posted: Fri Jan 29, 2010 3:01 pm Post subject: |
|
|
Im a little curious how we thing overflow has anything to do with underscors
wb by the way nice 2 year vacation _________________
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed; |
|
| Back to top |
|
 |
JSLover
Joined: 20 Dec 2004 Posts: 634 Location: LooseChange911.com The WTC bldgs shouldn't have fallen that fast. The official story is a lie!
|
Posted: Fri Jan 29, 2010 4:38 pm Post subject: |
|
|
| tank wrote: | | ...how we thing overflow has anything to do with underscors... |
...are you asking why I think overflow will fix it?...(I used DOM Inspector to force a change to the CSS & it did fix it {but only during that test, not permanently})...or r u wondering why overflow is causing the problem at all?...(I have no idea...seems to be hiding the last 1-3px & underscores are low enough to show the error)...
| tank wrote: | | wb by the way nice 2 year vacation |
...I never left...hehehe...
Also, further testing shows that leaving the 100% height on it doesn't help (or hurt)...so might as well remove it too...
| Code: | if (d.offsetHeight == p[2]) {
d.style.height = ''; d.style.overflow = ''; t.innerHTML = t.innerHTML.replace(l[0], l[1]);
} |
...constrain the height/overflow on Collapse, remove both on Expand... _________________
Home • Click image! • Blog |
|
| Back to top |
|
 |
tank
Joined: 21 Dec 2007 Posts: 3700 Location: Louisville KY USA
|
Posted: Fri Jan 29, 2010 5:41 pm Post subject: |
|
|
sounds like a bug of FF and CSS _________________
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed; |
|
| Back to top |
|
 |
maniac
Joined: 28 Aug 2009 Posts: 267
|
Posted: Fri Jan 29, 2010 5:54 pm Post subject: |
|
|
| tank wrote: | | sounds like a bug of FF and CSS |
You mean a bug in FF, Opera, and Google Chrome ? IE is the only browser it doesn't happen in. |
|
| Back to top |
|
 |
tank
Joined: 21 Dec 2007 Posts: 3700 Location: Louisville KY USA
|
Posted: Fri Jan 29, 2010 6:00 pm Post subject: |
|
|
Its a bug in those because its contrary to the usage of overflow which should not in fact shave off the underscors as line hight is part of the 100% content
Note there are descrepencies between the W3C standards and all browsers
Many of them do not support all standards some do certain things and others do not.
Perhaps "bug" is the wrong word i should have said "CSS support issue" _________________
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed; |
|
| Back to top |
|
 |
Lexikos
Joined: 17 Oct 2006 Posts: 7295 Location: Australia
|
Posted: Sat Jan 30, 2010 3:32 am Post subject: |
|
|
| Works as-is for me, with or without scrolling - Firefox 3.6 and IE8, Windows 7. |
|
| Back to top |
|
 |
|