ArthurHub / ArthurHub/HTML-Renderer

Scrolling too heavy on huge HTML even the HTML is simple

Đang mở
#91 0 bình luận 0 reaction 1 người được giao Được @Licshee nhận Xem trên GitHub
enhancement HTML
Ngôn ngữ chính
C#
Star
1.4k
Fork
550
Merge trung bình
14 ngày 9 giờ
Pull request đã merge (30 ngày)
1

Mô tả

I made a test HTML from [http://www.gutenberg.org/files/1661/1661-h/1661-h.htm](http://www.gutenberg.org/files/1661/1661-h/1661-h.htm) using SGMLReader as I suggested on issue 90.

When I clicked down button on the vertical scroll bar , scrolling took couple seconds.
After I displayed the bottom of the HTML , I clicked up button , scrolling didn't take so much time.

Now I'm avoiding this trouble;
`htmlrenderer\core\htmlcontainerint.cs

///
/// Render the html using the given device.
///
/// the device to use to render
public void PerformPaint(RGraphics g)
{
ArgChecker.AssertArgNotNull(g, "g");

bool pushed = false;
if ( MaxSize.Height > 0 )
{
g.PushClip( new RRect( _location.X , _location.Y , Math.Min( _maxSize.Width , PageSize.Width ) , Math.Min( _maxSize.Height , PageSize.Height ) ) );
pushed = true;
}
else
{
//g.PushClip( new RRect( MarginLeft , MarginTop , PageSize.Width , PageSize.Height ) );
//pushed = true;
}

if ( _root != null)
{
_root.Paint(g);
}

if ( pushed )
{
g.PopClip();
}
}
`

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.