1
Vote

Compatibility View causes minor formatting issues

description

This is minor; but, I thought you might want to know.
 
Compatibility View causes minor formatting issues.
 
Example 1...
 
With Compatibility View "off", the column headings are centered.
With Compatibility View "on", the column headings are left-aligned.
 
 
Example 2...
With Compatibility View "off", the distance from the right-most-edge-of-the-grid and the left-most-edge-of-the-scrollbar is X.
With Compatibility View "on", the distance from the right-most-edge-of-the-grid and the left-most-edge-of-the-scrollbar is a little-less-than-X.
 
I am using IE 8.0.6001.18702, Windows XP Pro, fully patched, x86.
 
This is just FYI-- the control is GREAT as-is.
 
Thank you.
 
-- Mark Kamoski

file attachments

comments

jesobrepena wrote Mar 10, 2010 at 9:34 PM

Hi Mark,

Could you send me a sample project and a screenshot if possible. I am using IE 8 on Vista Home and I am unable to reproduce it in my machine. .

Regards,
John

mkamoski wrote Mar 11, 2010 at 9:57 AM

Jes -- OK, attached is a sample test-project (CoolGridTest01.zip) that shows the horizontal-scroll issue in Compatibility View. (I am not sure about that heading-horizontal-alignment issue now because my test-project does not show that issue but my actual-project does so it is probably an issue in the styles and/or skins in my actual-project). Note that I am using VS.NET 2008 Standard and Windows XP Pro and IE8, all fully-patched.

mkamoski wrote Mar 11, 2010 at 10:19 AM

John -- I forgot to include my QandD workaround. I have attached it herewith, as "CoolGridTest01_201003110618.zip". HTH. Thank you. -- Mark Kamoski

jesobrepena wrote Mar 15, 2010 at 3:45 PM

Hi Mark,

Sorry it took me this long to respond. I investigated the issue. I was able to replicate it with the help of the sample project you sent me. It seems that it is because of an IE 8 bug. Nothing conclusive yet. I am still digging into the problem. I found this forum about some discrepancy in COL WIDTH: http://social.msdn.microsoft.com/Forums/en/iewebdevelopment/thread/f265c5b1-a45d-4949-85b2-86a97a884dc1

As a workaround, I think we need to detect in JavaScript as well as in Server-side if the browser is IE 8 compatibility mode. If yes, then subtract 3px from the column with when rendering. Let me see If I can cook something up quickly for this and I will post it in my Blog.

Thank you for continuous support, I really appreciate it. Would you like to be part of the project?

Regards,

John

mkamoski wrote Mar 15, 2010 at 5:08 PM

John --

Regarding this...
Thank you for continuous support, I really appreciate it. Would you like to be part of the project?
...I would like that and it would be nice-- however I must say that I may or may not be able to do code fixes.

It all depends on my workload.

If I can, I will.

If that is OK with you, then please do sign me up, etc.

Thank you.

-- Mark Kamoski