滚动问题

扫码查看
本文介绍了滚动问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我以前发过这个并且没有得到答案,所以让我们再试一次。现在IE8被作为一个高优先级的更新被推倒了,我的所有客户至少可以说是苦涩的。

我有一个使用Browser控件对象的应用程序,其中数据是不断的附加到文档正文。随着新数据的进入,文档将滚动到最后,以便显示最新信息。当IE6和7被使用时,下面的代码工作得很好,现在IE8的人告诉我它滚动到顶部而不是底部,使我的应用程序无用。


g_lngScroll = g_hLC.Window.Document.Body.ScrollRectangle.Top

I posted this before and got no answers, so lets try again.  Now that IE8 is being shoved down as a high priority update, all of my customers are, to say the least, bitter.

I have an application that uses an the Browser control object, where data is constantly being appended to the body of the document.  As new data comes in, the document will scroll to the end so that the latest information is displayed.  The following code worked perfectly when IE6 and 7 were being used, and now the IE8 folks tell me that it scrolls to the top instead of the bottom, making my application useless.

g_lngScroll = g_hLC.Window.Document.Body.ScrollRectangle.Top

如果 g_lngScroll> = g_lngLast - 30 然后

If g_lngScroll >= g_lngLast - 30 Then

g_hLC.Window.ScrollTo(0,ScrollMax)

g_hLC.Window.ScrollTo(0, ScrollMax)

g_lngScroll = g_hLC.Window.Document.Body.ScrollRectangle.Top

g_lngScroll = g_hLC.Window.Document.Body.ScrollRectangle.Top

g_lngLast = g_lngScroll

g_lngLast = g_lngScroll

结束 If
什么是解决方案?

End If

Whats the solution?

推荐答案


这篇关于滚动问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-26 18:17
查看更多