| Summary: | [Grid] refactor GridItem.js to calculate position based on pixel offset, not flat index | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Tim Buschtoens <tbuschto> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | tbuschto |
| Version: | 1.5 | ||
| Target Milestone: | 2.0 M1 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 383524 | ||
|
Description
Tim Buschtoens
Fixed with commit e2861da9f7055a1f2fd6f0f0f30726e09fc12255. "findItemByFlatIndex" was replaced by "findItemByOffset" "getOffset" was implemented in addition to "getFlatIndex" Also added "getOffsetHeight" (item height including children if expanded) and "getOwnHeight" (item height excluding children). Reverted changes (commit 74394fbb56e323584e5abb0ee5ec74f32a94b838). I broke GridTest.js Fixed again with commit 8cd244f10e201ff9e28267f32bb2bf04aafa655d. Tests did not fully run the first time. There was a bug when the very first item was expanded. |