MSIE component window incorrect (doctype)
Brought to you by:
ttm
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
different view image
Oops, my solution works only with MSIE 6 not with Version 7.
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';
}