Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Joe T. on May 08, 2008 12:41
open dhtmlx forum
TreeGrid Magically Shrinks!

i'm using the TreeGrid for the first time, and found it relatively easy to implement. Data comes in, displays as desired, etc.

However, Internet Explorer is giving me a significant problem: for no reason i can think of, when i scroll the grid with my mouse wheel, the grid suddenly starts to shrink horizontally. It's only a little at a time, but keeps shrinking until only the vertical scrollbar is visible. When i trigger the grid to re-load, or change the viewport (resize window, toggle the IE Developer Toolbar), the grid redraws just fine, but with the same shrinking trick.

Versions:
IE 7, Windows XP Pro
TreeGrid: v.1.5 build 80319

i'm not under a paid support contract now, but would be grateful for any help. This issue doesn't happen in any other browser i've tried (Firefox 2,3 and Opera), and from IE's script debugger i don't see any of my javascript being triggered when the shrink happens.
Thanks,
-Joe T.
Answer posted by Support on May 13, 2008 10:42
The grid  can enable auto-size update in few cases
    - using of percent based width
    - enableAutoWidth  mode
    - using flexible columns ( * as size )

In all such cases grid may automatically adjust own size, basically it is a safe routine, but it possible to define custom styles of grid in such manner that it will cause incorrect size recalculation.
We can't reconstruct problem locally ( most probably it caused by custom styles ), if you have any kind of sample where it can be reconstructed - please send to support@dhtmlx.com