Home » U++ Library support » RichText,QTF,RTF... » RichTextView: Size is wrong without scrollbar
RichTextView: Size is wrong without scrollbar [message #1305] |
Mon, 27 February 2006 00:08 |
zsolt
Messages: 693 Registered: December 2005 Location: Budapest, Hungary
|
Contributor |
|
|
The problem is, that without scrollbars, size is calculated as if there were scrollbars.
I have commented out two lines, and it seems to be OK with and without scrollbars as well:
int RichTextView::GetPageCx() const
{
int szcx = GetSize().cx;
//if(!sb.IsShown() && sb.IsAutoHide())
// szcx -= ScrollBar::GetStdBox();
return IsNull(zoom) ? cx: (szcx - margin.left - margin.right) / zoom;
}
|
|
|
Goto Forum:
Current Time: Thu Mar 28 12:19:47 CET 2024
Total time taken to generate the page: 0.01739 seconds
|