Menu

#125 MSIE component window incorrect (doctype)

open
nobody
Component (61)
3
2008-09-11
2008-09-11
wniva
No

I have a page with specified doctype "dtXHTML_1_0_Transitional". When view in the MSIE then is the window component incorrect. Primary is the right border and the title bar buttons shifted.

With the doctype "dtNone" ist the view in MSIE correct. Other doctypes is incorrect.

I have tested this effect in MSIE 6.0 and 7.0.
In Firefox (3.0) and Opera (9.52) is this not a problem.

My resolution for this problem is:
- Create an event "OnBeforeShowHeader"
- insert into the function :
echo "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\r\n";

Maybe someone can understand this and find a better solution directly into the VCL.

SVN: 255

Discussion

  • wniva

    wniva - 2008-09-11

    different view image

     
  • wniva

    wniva - 2008-09-11
    • priority: 5 --> 3
     
  • wniva

    wniva - 2008-09-11

    Oops, my solution works only with MSIE 6 not with Version 7.

     
  • wniva

    wniva - 2008-09-24

    My better preliminary solution is this lines insert into onCreate:

    if ( isset($_SERVER["HTTP_USER_AGENT"] )
    && strpos($_SERVER["HTTP_USER_AGENT"], 'MSIE') !== FALSE ) {
    $this->DocType = 'dtNone';
    }

     

Log in to post a comment.