CG Grid's height

From Catglobe Wiki
Revision as of 03:33, 30 December 2008 by Catglobe (talk | contribs) (New page: These days i have fixed some bugs related to LnF in FF. Most of them came from the CGGrid which overlapped other below content. For example, in Data Import wizard or Access Dialog. When i ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

These days i have fixed some bugs related to LnF in FF. Most of them came from the CGGrid which overlapped other below content. For example, in Data Import wizard or Access Dialog. When i looked at the code, it had code to set the grid's height as we normally does in catglobe.

But why did not it work? In reality, sometime it did, sometime not. What did we do was, i mentioned here was a jQuery structure:

$("#" + grid.Id + "_mr").height(h);
$("#" + grid.Id + "_mc").height(h);

What it did was to set height for the row and cell containing the main content of grid. HOWEVER, the outer parts of them are tbody and table, they were still 100% height.  That is the point.

How to fix it? Simple, make sure you also set height for tbody and table as well.

Code snippest:

$("#" + grid.Id + "_mtb").height(h);
$("#" + grid.Id + "_main").height(h);