Knockout-Contrib / Knockout-Contrib/KoGrid
Grid fails to size or resize properly if initially rendered hidden
- Dominant language
- JavaScript
- Stars
- 277
- Forks
- 124
- PR merge metrics
- No merged PRs in 30d
Description
fix on my side was to call the grid's init() method after it was made visible.
```
self.isInboxVisible.subscribe(function (newValue) {
if (newValue === true && !initializedgrid) {
initializedgrid = true;
ko.contextFor($('.koGrid').first().children()[0]).$data.init();
}
});
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the grid's init() method and the koGrid instance shown in the issue, focusing on what happens when the grid is initially hidden. Reproduce the hidden-to-visible transition and verify that the grid sizes correctly on first display and resizes correctly afterward.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100