| | 1 | = Creating a ticket = |
| | 2 | If you think you have found a bug, please make sure you search the Ticket System first before creating a new bug entry. |
| | 3 | |
| | 4 | However, if you think the bug does not relate to any of the reports found in the Ticket System, you can open up a new ticket by using this report template: |
| | 5 | |
| | 6 | == Bug report template == |
| | 7 | 1. '''What steps will reproduce the problem?''' |
| | 8 | [A step-by-step description to easily reproduce this problem] |
| | 9 | |
| | 10 | 2. '''What is the expected output?''' |
| | 11 | [A detailed description of the software's behavior as expected] |
| | 12 | |
| | 13 | 3. '''What do you see instead?''' |
| | 14 | [A detailed description of the software's behavior as is] |
| | 15 | |
| | 16 | 4. '''Can you provide a fix for this problem?''' |
| | 17 | [Optional: If you have found a fix/workaround for this problem, post it here] |
| | 18 | |
| | 19 | == Bug report example == |
| | 20 | Here follows a fully configured example of a bug report as posted by [wiki:Contributors Thorsten Suckow-Homberg] on the ExtJS-forums a while ago: |
| | 21 | |
| | 22 | '''What steps will reproduce the problem?''' |
| | 23 | 1. Create a Ext.Window with a gridpanel in it |
| | 24 | 2. Move the window into the middle of the page |
| | 25 | 3. Resize the grid's columns so that a horizontal scrollbar appears |
| | 26 | 4. Scroll to the right |
| | 27 | 5. Click on any cell in the right outermost column |
| | 28 | |
| | 29 | '''What is the expected output?''' |
| | 30 | The grid should highlight the selected row, the position of the horizontal scrollbar should not change |
| | 31 | |
| | 32 | '''What do you see instead?''' |
| | 33 | The clicked row gets selected, but the position of the horizontal scrollbar seems to reset it's position to 0. |
| | 34 | |
| | 35 | '''Can you provide a fix for this problem?''' |
| | 36 | The xy-coordinates for the focus element get computed in the ensureVisible-method. |
| | 37 | The returned x-value does not take the x-coordinate of the gridpanel itself into account, which it apparently should. |
| | 38 | |
| | 39 | i.e. |
| | 40 | in !GridView.js |
| | 41 | replace Line 848 |
| | 42 | |
| | 43 | {{{ |
| | 44 | return cellEl ? Ext.fly(cellEl).getXY() : [c.scrollLeft, Ext.fly(rowEl).getY()]; |
| | 45 | }}} |
| | 46 | |
| | 47 | with |
| | 48 | |
| | 49 | {{{ |
| | 50 | return cellEl ? Ext.fly(cellEl).getXY() : [c.scrollLeft+this.el.getX(), Ext.fly(rowEl).getY()]; |
| | 51 | }}} |
| | 52 | |
| | 53 | |
| | 54 | == Wiki syntaxed template == |
| | 55 | Copy and paste this text into the textform when creating a new ticket. |
| | 56 | |
| | 57 | {{{ |
| | 58 | '''What steps will reproduce the problem?''' |
| | 59 | |
| | 60 | |
| | 61 | '''What is the expected output?''' |
| | 62 | |
| | 63 | |
| | 64 | '''What do you see instead?''' |
| | 65 | |
| | 66 | |
| | 67 | '''Can you provide a fix for this problem?''' |
| | 68 | }}} |
| | 69 | |
| | 70 | |
| | 71 | |
| | 72 | |