[ https://issues.apache.org/jira/browse/FLEX-33559?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13658571#comment-13658571 ]
Koen Weyn commented on FLEX-33559: ---------------------------------- When researching this issue, I found the below snippet in the code of spark.components.gridClasses The getColumnBounds method is used to determine how much of a horizontal scroll has to happen, but when the rowCount is 0, the method returns 0 for width. /** * Returns the layout bounds of the specified column. * * @langversion 3.0 * @playerversion Flash 10 * @playerversion AIR 2.0 * @productversion Flex 4.5 */ public function getColumnBounds(col:int):Rectangle { // TODO (klin): provide optional return value (Rectangle) parameter if ((col < 0) || (col >= _columnCount)) return null; if (_columnCount == 0 || _rowCount == 0) return new Rectangle(0, 0, 0, 0); const x:Number = getCellX(0, col); const y:Number = getCellY(0, col); const colWidth:Number = getColumnWidth(col); const colHeight:Number = getCellY(_rowCount - 1, col) + getRowHeight(_rowCount - 1) - y; return new Rectangle(x, y, colWidth, colHeight); } > Horizontal scrolling of an empty spark DataGrid does not work > ------------------------------------------------------------- > > Key: FLEX-33559 > URL: https://issues.apache.org/jira/browse/FLEX-33559 > Project: Apache Flex > Issue Type: Bug > Components: Spark: DataGrid > Affects Versions: Adobe Flex SDK 4.5 (Release) > Environment: Windows > OSX > Reporter: Koen Weyn > > When a DataGrid contains more columns than can fit on the screen, but > contains no rows, horizontal scrolling is only possible when dragging the > thumb. > Clicking the arrows or the track does not work. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira