dialog scrollbar doesn't work properly in IE

887
1
09-13-2012 06:37 AM
deleted-user-ugCMpXci8bn5
New Contributor III
Hello,
I have a dialog with a scrollbar, which pops up with a button click.  The scrollbar works fine in Firefox, but not in IE9.
Here is the code:
        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
        });
        


I have '<meta http-equiv="X-UA-Compatible" content="IE=7", "IE=9" />' in my index file as well.
Thanks for any help, Jason
0 Kudos
1 Reply
deleted-user-ugCMpXci8bn5
New Contributor III
I changed my <meta> tag so that my webapp opens as an IE9 document (seen in IE  F12 tool)...

Perviously the tag at the top of my index page was:
<meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=7", "IE=9" />

..which set the page as an IE7 document (honestly I am not exactly sure why...anyone know?)

I changed these tags to:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=7,IE=9" />


..and now I no longer have the scrollbar problem.
0 Kudos