AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Forum code blocks hide underscores in last line...

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
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!

PostPosted: Wed Jan 27, 2010 7:19 am    Post subject: Forum code blocks hide underscores in last line... Reply with quote

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
View user's profile Send private message Visit poster's website
SoLong&Thx4AllTheFish



Joined: 27 May 2007
Posts: 4999

PostPosted: Wed Jan 27, 2010 4:10 pm    Post subject: Reply with quote

a) When I expand the _ are still there (FF 3.5.7, WinXP)
b) Re copy: http://www.autohotkey.com/forum/viewtopic.php?p=315587#315587
_________________
AHK Wiki FAQ
TF : Text files & strings lib, TF Forum
Back to top
View user's profile Send private message
IE7 User
Guest





PostPosted: Thu Jan 28, 2010 6:50 am    Post subject: Re: Forum code blocks hide underscores in last line... Reply with quote

JSLover wrote:
...when you expand that, the underscores look like spaces...
Speak for yourself.
Back to top
Kellianjaxon



Joined: 04 Jan 2008
Posts: 102

PostPosted: Fri Jan 29, 2010 12:40 am    Post subject: Reply with quote

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
View user's profile Send private message
SoLong&Thx4AllTheFish



Joined: 27 May 2007
Posts: 4999

PostPosted: Fri Jan 29, 2010 7:11 am    Post subject: Reply with quote

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
View user's profile Send private message
maniac



Joined: 28 Aug 2009
Posts: 267

PostPosted: Fri Jan 29, 2010 2:33 pm    Post subject: Reply with quote

Confirmed on Opera 10.10
Back to top
View user's profile Send private message
tank



Joined: 21 Dec 2007
Posts: 3700
Location: Louisville KY USA

PostPosted: Fri Jan 29, 2010 3:01 pm    Post subject: Reply with quote

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
View user's profile Send private 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!

PostPosted: Fri Jan 29, 2010 4:38 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
tank



Joined: 21 Dec 2007
Posts: 3700
Location: Louisville KY USA

PostPosted: Fri Jan 29, 2010 5:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
maniac



Joined: 28 Aug 2009
Posts: 267

PostPosted: Fri Jan 29, 2010 5:54 pm    Post subject: Reply with quote

tank wrote:
sounds like a bug of FF and CSS


You mean a bug in FF, Opera, and Google Chrome Confused ? IE is the only browser it doesn't happen in.
Back to top
View user's profile Send private message
tank



Joined: 21 Dec 2007
Posts: 3700
Location: Louisville KY USA

PostPosted: Fri Jan 29, 2010 6:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Lexikos



Joined: 17 Oct 2006
Posts: 7295
Location: Australia

PostPosted: Sat Jan 30, 2010 3:32 am    Post subject: Reply with quote

Works as-is for me, with or without scrolling - Firefox 3.6 and IE8, Windows 7.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group