Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Hongmin Ren on Feb 17, 2009 06:07
open dhtmlx forum
dhtmlxGrid Scrollbar is always displayed in IE7 when auto-height mode is set as true and MaxHeight is set any value

dear,

I use dhtmlxGrid 1.5 in IE7, I encountered a problem:

when I set auto-height mode and MaxHeight, dhtmlxGrid Scrollbar is always displayed. By seeing your example, I observed that this problem is related to webPage DOCTYPE.

Now, "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">" is choosed in my web page. If I change the <!DOCTYPE> into "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">", the problem is disappeared, namly dhtmlxGrid Scrollbar is displayed when it is really needed.

But I can not change the DOCTYPE setup into HTML 4.0.1.

Please give me some help.

Thanks

Answer posted by Support on Feb 18, 2009 06:33
Issue is not actual for latest codebase. 
In case of grid 1.5 you can try to add next line to the grid init

grid._isIE7s = false;

It must normalize height calculation