#6130 closed defect (fixed)
Layout problems related to horizontal scrolling in dojox.Grid
Reported by: | guest | Owned by: | Nathan Toone |
---|---|---|---|
Priority: | high | Milestone: | 1.2 |
Component: | DojoX Grid | Version: | 1.0 |
Keywords: | Cc: | [email protected]… | |
Blocked By: | Blocking: |
Description (last modified by )
I have picked up a couple of quirky behaviours with a grid that is wide enough to have horizontal scrollbars.
i) if the grid is scrolled to the right, and then you sort on a column, the grid headers become misaligned with the body rows - the body rows snap back to full left scroll, whereas the headers stay in their scrolled position, at least until you scroll again; ii) if the grid is scrolled to the right, and you select (click on) a row, both body and headers snap back to full left scroll.
Both the above occur in 1.0.2, 1.1.0 Beta 2 and the nightly build of the 5th March (only tested on IE6, since that's all I have access to at present). With 1.0.2 there is an additional problem - with a grid scrolled to the right, even a mouseOver on a selected row causes the grid to snap back to full left scroll - this problem is however fixed in 1.1.0 Beta 2 and the nightly.
None of these is particularly serious, but they can be irritating. I will attach a test file that can be used to demonstrate the problems - you will need to change the paths appropriately, and may need to widen one of the columns to enable the horizontal scroll bar, depending on your screen width.
Attachments (3)
Change History (11)
Changed 14 years ago by
Attachment: | gridScroll.html added |
---|
comment:1 follow-up: 2 Changed 14 years ago by
Milestone: | → 1.2 |
---|
comment:2 Changed 14 years ago by
Replying to bill: At \dojox\grid\_grid\focus.js
_focusifyCellNode: function(inBork){
var n = this.cell && this.cell.getNode(this.rowIndex); if(n){
dojo.toggleClass(n, this.focusClass, inBork); this.scrollIntoView(); try{
if(!this.grid.edit.isEditing())
dojox.grid.fire(n, "focus");
}catch(e){}
}
},
This method will cause "horizontal scrolling" problem.
comment:3 Changed 14 years ago by
Owner: | changed from sorvell to Bryan Forbes |
---|
comment:4 Changed 14 years ago by
Description: | modified (diff) |
---|---|
Owner: | changed from Bryan Forbes to Nathan Toone |
Status: | new → assigned |
comment:5 Changed 14 years ago by
Resolution: | → worksforme |
---|---|
Status: | assigned → closed |
Not seeing this with DataGrid?. If you are able to reproduce, feel free to reopen.
comment:6 Changed 13 years ago by
Resolution: | worksforme |
---|---|
Status: | closed → reopened |
I can reproduce this on DataGrid? in 1.2/1.3. The problem only occurs on IE (FF works correctly).
Changed 13 years ago by
Attachment: | states.json added |
---|
comment:7 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Closing this, there's another tracker that's tracking the header position issue.
comment:8 Changed 9 years ago by
Can someone please mention the ticket that is tracking the header position issue? It'd help us a lot if the ticket details are entered before closing this ticket. Thanks.
Simple page that can be used to demonstrate the problem