AutoHotkey Community

It is currently May 27th, 2012, 2:02 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 12 posts ] 
Author Message
PostPosted: January 27th, 2010, 8:19 am 
Online
User avatar

Joined: December 20th, 2004, 12:19 pm
Posts: 798
Location: LooseChange911.com Ask Questions, Demand Answers █ The WTC bldgs █ shouldn't have fallen █ that fast
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]

_________________
AutoHotkey-Hotstring.ahk - Helping the world spell "AutoHotkey" correctly! (btw, it's a lowercase k!)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 27th, 2010, 5:10 pm 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
a) When I expand the _ are still there (FF 3.5.7, WinXP)
b) Re copy: http://www.autohotkey.com/forum/viewtop ... 587#315587

_________________
AHK FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
PostPosted: January 28th, 2010, 7:50 am 
JSLover wrote:
...when you expand that, the underscores look like spaces...
Speak for yourself.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 29th, 2010, 1:40 am 
Offline

Joined: January 5th, 2008, 12:11 am
Posts: 102
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 29th, 2010, 8:11 am 
Offline

Joined: May 27th, 2007, 9:41 am
Posts: 4999
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 FAQ
TF : Text files & strings lib, TF Forum


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 29th, 2010, 3:33 pm 
Offline

Joined: August 28th, 2009, 3:00 pm
Posts: 275
Confirmed on Opera 10.10


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 29th, 2010, 4:01 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
Im a little curious how we thing overflow has anything to do with underscors
wb by the way nice 2 year vacation

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 29th, 2010, 5:38 pm 
Online
User avatar

Joined: December 20th, 2004, 12:19 pm
Posts: 798
Location: LooseChange911.com Ask Questions, Demand Answers █ The WTC bldgs █ shouldn't have fallen █ that fast
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...

_________________
AutoHotkey-Hotstring.ahk - Helping the world spell "AutoHotkey" correctly! (btw, it's a lowercase k!)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 29th, 2010, 6:41 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
sounds like a bug of FF and CSS

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 29th, 2010, 6:54 pm 
Offline

Joined: August 28th, 2009, 3:00 pm
Posts: 275
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 29th, 2010, 7:00 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
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"

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 30th, 2010, 4:32 am 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7503
Location: Australia
Works as-is for me, with or without scrolling - Firefox 3.6 and IE8, Windows 7.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Apollo, engunneer, Google Feedfetcher, JSLover, rbrtryn, sjc1000 and 18 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group