| Summary: | [Tree][Table] Wrong item bounds under some constellation | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Amandeep Chahal <amandeep.chahal> | ||||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | amandeep.chahal | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | 2.1 M1 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
Created attachment 228040 [details]
Table Image
Fixed in master with commit d1014f46af45aa60a350292a72cbbba1d1dbaafb. The border width was not taken into calculation in Table#getVisibleItemCount and Tree#getVisibleRowCount. |
Created attachment 228039 [details] TableTab to be replaced in controls demo project to reprodcue the error In a particular scenario when the vertical scrollbar for table is enabled and visible, the selection item's getBounds method returns wrong values. Steps to reproduce : 1. Replace the TableTab in the demo controls with the TableTab attached. 2. I have modified code such that when a row is double clicked, a text editor opens. The bounds of the editor are set using the bounds of the item. 3. Run the demo. Check the following for the table in the UI : 'BORDER' and 'linesVisible' 4. Change the table size (reduce it) so that the vertical scrollbar is visible. 5. Now scroll to the last item and adjust the table size such that there's exactly space of another row left after the last row. (Refer attached image) 6. Double click on the item. The editor is opened at the wrong position (in the empty space below the last row). 7. Now readjust the table size so that there's no space after the last row, double click the last row now. The editor comes up at the right position.