1

我的 web 应用程序中有一个对话框弹出框(使用带有 Dojo 的 ArcGIS Javascript API)。在 Firefox 中,我得到一个正常运行的滚动条,但在 IE 中,有一个滚动条,但它不起作用……我可以向上/向下箭头滚动,但是当我这样做时,对话框会闪烁并结结巴巴。 ...有什么建议么?谢谢,杰森

代码:

    infoBox = new dijit.Dialog({
    //title: "Information",
    id: "info",
    content: infoText,
    style: "width: 450px; height: 380px; overflow: auto",
    autofocus: !dojo.isIE, // NOTE: turning focus ON in IE causes errors when  reopening the dialog
    refocus: !dojo.isIE
    //autofocus: false, // I tried this alternative, but it didn't help
    //refocus: false

    });

(在我的设置中,我有: meta http-equiv="X-UA-Compatible" content="IE=7", "IE=9" / )

4

1 回答 1

1

试试这个代码:

domStyle.set(infoBox.containerNode, {
    position: 'relative'
});

在顶部添加以下代码 -

require(["dojo/dom-style"], function(domStyle){ domStyle.get(node, style); domStyle.set(node, style, value); });
于 2012-11-15T07:33:14.567 回答