| Summary: | [Tree][Table][Grid] Refactor client GridColumn | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Tim Buschtoens <tbuschto> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | tbuschto |
| Version: | 1.5 | ||
| Target Milestone: | 2.0 M1 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Tim Buschtoens
Ofter some discussion with ivan, we decided to have two ColumnRender (header and footer) instead of one big widget which rendres nothing in its middle section. For that, the client-side column widget has to be split in the data container and the actual rendered widget. Fixed with commit 66e4c7ccbf144d231169ec5d3b35ee10a1bfa042. There is very little code left from the original implementation. The GridColumn.js now only contains the data, while GridColumnLabel.js is what renders the header of a column. GridHeader.js does the communication between the two. I also took the opportunity to implement a propper drag feedback for moveable columns, though there is still no insert marker (that might have taken another day.) On the other hand it now has a "snap-back" animation that we could also use in other places. Added commit e8a8576a86e86e8b3f5153b3e4adccac68d391f5 which fixes a minor issue woth some firefox installations flickering during dragging a column. With commit 9afaab695b40afa5e5cb449b62aafb702e1258e9 i slightly refactored the snap animation. Besides prettier code, its now disposed asynchronously (timeout), since disposing an object during an event fired by that same object isn't a very good idea. |