Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » RichText,QTF,RTF... » RichTextView: Size is wrong without scrollbar
Re: RichTextView: Size is wrong without scrollbar [message #1425 is a reply to message #1305] Fri, 03 March 2006 16:37 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
BTW, beware this situation, it is sometimes tricky.

The trouble is that if you use view width for computation of sb layout, you will end in "flip-flop" situation, as presence of sb will affect its layout (size is reduced).

In this case it leads in relatively harmless condition, but with both scrollbars present, it can lead into "scrollbar oscillation" which results in stack-overflow crash. That is why it is advisible to provide always the size that does not depend whether scrollbar is visible.

However, in RichTextView, the bug was that this size was used for both sb calulaction and painting. This is now fixed.

Mirek
 
Read Message
Read Message
Read Message
Previous Topic: How to add some text to RichTextview?
Next Topic: RichTextView can select more than one block of text [BUGS][FIXED]
Goto Forum:
  


Current Time: Fri May 10 19:56:59 CEST 2024

Total time taken to generate the page: 0.02464 seconds