While testing SmartClient “v11.0p_2016-09-07/PowerEdition Deployment” (using Chrome 53 and Internet Explorer 11) we found several issues with header spans.
For the following examples, see the provided JavaScript file (headerSpan-noWrap-autoSize-01.js). Using the Feature Explorer running the above SmartClient version, go to the “Grids > Appearance > Column order” page, paste the provided code in the “columnOrder.js” tab, then click the “Try it” button.
________________________
ISSUE #1:
On initial grid display, each headerSpan correctly shows the full, unwrapped title, and the columns in the span widen as necessary, but the grid Summary row and Body columns are misaligned from the grid header (see headerSpan-01.png).
________________________
ISSUE #2:
Calling ListGrid.autoFitFields() at any time (such as immediately after initial grid display) incorrectly horizontally truncates header span titles (see headerSpan-02.png), rather than auto-sizing them as on initial grid display, and incorrectly sets ListGrid.autoSizeHeaderSpans to false. We expect that after manual auto-fit the grid would appear exactly the same as on initial grid display. Note: This occurs whether or not any columns are frozen.
________________________
ISSUE #3:
Clicking “Cash Contrib per Region” column header to sort by the column shows the Ascending sort icon (see headerSpan-03.png). Note that the header height does not change with the addition of the Ascending sort icon.
Clicking the “Cash Contrib per Region” column header again, shows the Descending icon, but note that header height increases (see headerSpan-04.png). Click the “Cash Contrib per Region” column header again to sort Ascending, and the header height decreases. We expect the header height to be the same whether the “Cash Contrib per Region” column is sorted Ascending or Descending.
For the following examples, see the provided JavaScript file (headerSpan-noWrap-autoSize-01.js). Using the Feature Explorer running the above SmartClient version, go to the “Grids > Appearance > Column order” page, paste the provided code in the “columnOrder.js” tab, then click the “Try it” button.
________________________
ISSUE #1:
On initial grid display, each headerSpan correctly shows the full, unwrapped title, and the columns in the span widen as necessary, but the grid Summary row and Body columns are misaligned from the grid header (see headerSpan-01.png).
________________________
ISSUE #2:
Calling ListGrid.autoFitFields() at any time (such as immediately after initial grid display) incorrectly horizontally truncates header span titles (see headerSpan-02.png), rather than auto-sizing them as on initial grid display, and incorrectly sets ListGrid.autoSizeHeaderSpans to false. We expect that after manual auto-fit the grid would appear exactly the same as on initial grid display. Note: This occurs whether or not any columns are frozen.
________________________
ISSUE #3:
Clicking “Cash Contrib per Region” column header to sort by the column shows the Ascending sort icon (see headerSpan-03.png). Note that the header height does not change with the addition of the Ascending sort icon.
Clicking the “Cash Contrib per Region” column header again, shows the Descending icon, but note that header height increases (see headerSpan-04.png). Click the “Cash Contrib per Region” column header again to sort Ascending, and the header height decreases. We expect the header height to be the same whether the “Cash Contrib per Region” column is sorted Ascending or Descending.
Comment