My scrollbar is inaccurate with long lines

For technical support for all editions of CSE HTML Validator. Includes bug reports.

My scrollbar is inaccurate with long lines

Postby RSteinwand » Mon May 25, 2009 8:37 am

Hi Albert.

I'm running the latest version and have noticed this anomaly on several occasions and decided to bug it.

I always have word wrap turned off in all my editors. While viewing the ugly source for http://www.google.com, I moved the scroll bar all the way to the right and noticed the content still went past the right edge, so I put my cursor on the long line and pressed the "end" key to get me to the end of the line, which I thought fixed the scrollbar until I found a longer line and had to do the same thing again. Each time I do this, the scroll bar "handle" gets narrower, meaning it thinks the window is wider. I would expect at startup, the editor would determine the longest line and set the scrollbar accordingly (or does this slow down the opening of multiple documents at once?).
Rick
User avatar
RSteinwand
Rank IV - Intermediate
Rank IV - Intermediate
 
Posts: 161
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND

Postby RSteinwand » Mon May 25, 2009 8:49 am

Hmmm. Maybe my problem is related to this? http://www.htmlvalidator.com/CSEForum/v ... .php?t=607

I was just adding line breaks to the above Google document and so my longest line ends on the </form> element and now the scroll bar thinks there's content longer than that, but there isn't. With the longest content at the right side of the window, I still have 3 inches more the scroll bar handle can move. FWIW, the cursor position at the bottom says this line is over 4000 characters long. Apparently the scrollbar doesn't get adjusted when long lines are shortened by adding CR's either.
Rick
User avatar
RSteinwand
Rank IV - Intermediate
Rank IV - Intermediate
 
Posts: 161
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND

Postby Albert Wiersch » Mon May 25, 2009 10:11 am

Thanks Rick. I'll let the editor developer know about this.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX

Re: My scrollbar is inaccurate with long lines

Postby RSteinwand » Fri Jan 15, 2010 10:34 am

Hi Albert,

I see that code styling also isn't working with lines longer than 1000 characters, in other words, everything is black so html is the same color as text. I had to put my cursor on the longest lines and press the "end" key to even display them.

Also, on every html editor I use (Textpad, Dreamweaver), if I double click the "div" part of this: </div> it just highights the text part, not the slash, making it easy to substitute different code.

Thanks.
Rick
User avatar
RSteinwand
Rank IV - Intermediate
Rank IV - Intermediate
 
Posts: 161
Joined: Mon Jun 09, 2008 2:12 pm
Location: Fargo, ND

Re: My scrollbar is inaccurate with long lines

Postby Albert Wiersch » Fri Jan 15, 2010 10:27 pm

RSteinwand wrote:Hi Albert,

I see that code styling also isn't working with lines longer than 1000 characters, in other words, everything is black so html is the same color as text. I had to put my cursor on the longest lines and press the "end" key to even display them.


Yes, unfortunately the editor component that we use has some issues with this (scrollbars and long lines). Hopefully they will be addressed in future updates. If you have really long lines, you can try increasing the parse limit:
viewtopic.php?t=607

I'm assuming you're using the latest version, 9.03.

I believe there is a limit because of performance reasons, but you can increase the limit with the information in the above post.

RSteinwand wrote:Also, on every html editor I use (Textpad, Dreamweaver), if I double click the "div" part of this: </div> it just highights the text part, not the slash, making it easy to substitute different code.


You can change the delimiters for HTML files in the File Types tab of the Editor Options. You can add the '/' character... however, that might cause an issue if you double-click on a link as the slashes in the link will delimit the selection and you may not want that.
Image
Albert Wiersch
User avatar
Albert Wiersch
Site Admin
Site Admin
 
Posts: 2361
Joined: Sat Dec 11, 2004 10:23 am
Location: Near Dallas, TX


Return to CSE Tech Support

Who is online

Users browsing this forum: No registered users and 3 guests

cron