KoGrid icon indicating copy to clipboard operation
KoGrid copied to clipboard

Grid not visible until browser or screen is re-sized.

Open bhatnagar-ankur opened this issue 11 years ago • 2 comments

Hi, I am using Kogrid to display my data, and on initial load grid is not visible. It gets rendered or visible when we re-size the browser or window.

The issue seems to be that the width of the divisions(all the child divisions of the kogrid div) is getting set to zero on initial load, on the re-sizing it takes the correct width.

Any suggestions?

bhatnagar-ankur avatar Nov 12 '13 07:11 bhatnagar-ankur

I'm experiencing the exact same issue. I believe it's because the container element of the koGrid div has a display:none.

If I make it visible then the grid works fine.

JohnMcAvinue avatar Dec 19 '13 10:12 JohnMcAvinue

I corrected this behavior by wiring up the compositionComplete event and firing a resize

// use this to fix the kogrid resize issue
function compositionComplete() {
    $(window).trigger('resize');
    return true;
}

shannonhorn avatar Apr 23 '14 21:04 shannonhorn