CalendarExtender滚动后错误定位 [英] CalendarExtender wrongly positioned after scrolling

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

问题描述

我正在使用默认样式将CalendarExtender添加到页面.当我单击日历按钮触发日历弹出时,日历将正常显示.但是,当我向下滚动并再次单击按钮时,日历的位置不在应有的位置,如下所示.

I am adding a CalendarExtender to a page, using the default styles. When I click the calendar button to trigger the calendar popup, the calendar displays normally. However, when I scroll down and click the button again, the calendar's position is not where it should be, as seen below.

为什么会发生这种情况,我该如何解决?

Why is this occuring and how do I fix it?

编辑:有关此页面实施的一些知识.

A bit about the implementation of this page.

CalendarExtender和TextBox是添加到SharePoint 2007页面的WebPart的一部分.我正在像这样创建扩展器:

The CalendarExtender and TextBox are part of a WebPart added to a SharePoint 2007 Page. I am creating the extender like so:

textBox = new TextBox() { ID = "textBox" };
Controls.Add(textBox);

calendar = new CalendarExtender()
    {
        ID = "ceStartDate",
        TargetControlID = textBox.ID,
        PopupPosition = CalendarPosition.Right,
        PopupButtonID = image.ID
    };
Controls.Add(calendar);

推荐答案

什么是 DOCTYPE 另外,它是什么浏览器?我在Quirks模式下的IE6-7具有无效/旧DOCTYPE的页面上看到了此问题.

What is the DOCTYPE of the page? Also, what browser is it? I have seen this issue on pages with invalid/old DOCTYPEs with IE6-7 in Quirks mode.

在怪癖模式下,javascript值(如滚动位置)可能会关闭,从而导致不良的渲染.您应该确保您具有有效的DOCTYPE,以强制IE进入标准模式,例如.

In quirks mode, javascript values(like scroll position), can be off, resulting in a bad render. You should ensure you have a valid DOCTYPE that forces IE into standards mode like..

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

这篇关于CalendarExtender滚动后错误定位的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆