Ticket #6130 (closed defect: worksforme)

Opened 9 months ago

Last modified 3 months ago

Layout problems related to horizontal scrolling in dojox.Grid

Reported by: guest Owned by: toonetown
Priority: normal Milestone: 1.2
Component: DojoX Grid Version: 1.0
Severity: normal Keywords:
Cc: yatessc@…

Description (last modified by toonetown) (diff)

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

gridScroll.html (2.4 kB) - added by guest 9 months ago.
Simple page that can be used to demonstrate the problem

Change History

Changed 9 months ago by guest

Simple page that can be used to demonstrate the problem

follow-up: ↓ 2   Changed 8 months ago by bill

  • milestone set to 1.2

in reply to: ↑ 1   Changed 8 months ago by guest

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.

  Changed 3 months ago by BryanForbes

  • owner changed from sorvell to BryanForbes

  Changed 3 months ago by toonetown

  • owner changed from BryanForbes to toonetown
  • status changed from new to assigned
  • description modified (diff)

  Changed 3 months ago by toonetown

  • status changed from assigned to closed
  • resolution set to worksforme

Not seeing this with DataGrid?. If you are able to reproduce, feel free to reopen.

Note: See TracTickets for help on using tickets.