close

Filter

loading table of contents...

Release Notes / Version 13.2512.1

Table Of Contents

Taxonomy Editor: Resizing No Longer Slows Down Over Time

In the taxonomy property editor, resizing the editor (window, side panel or splitter) could get noticeably slower the longer a document stayed open. Each time the list of selected or suggested taxonomy tags was refreshed, another resize listener was added to the list component. All of these listeners ran on every resize, causing extra work and repeated browser layout recalculations.

The selected tags list (TaxonomyLinkListGridPanelBase) and the suggestions list (TaxonomySuggestionsLinkListPanelBase) now each register a single buffered resize listener. On resize, it recalculates the shortened taxonomy paths once per rendered row, using the new public method TaxonomyUtil.reapplyEllipsis(grid, createRenderer). Both panels have a new protected method createTaxonomyRenderer(record), which creates the renderer for a row. It is used both to render the row and to recalculate the shortened path on resize.

NodePathEllipsis#autoEllipsis() no longer registers a resize listener and only calculates the shortened path. NodePathEllipsis#addResizeListener() has been removed. TaxonomyRenderer has a new public method autoEllipsis(). It does nothing by default, and TaxonomyLinkListRenderer overrides it.

Upgrade notes:

  • If you have overridden taxonomyRenderer in TaxonomyLinkListGridPanelBase or TaxonomySuggestionsLinkListPanelBase to use your own renderer, override createTaxonomyRenderer(record) instead. Your renderer is then also used when the path is shortened again on resize.

  • If you call NodePathEllipsis#addResizeListener(), remove the call.

  • If you use TaxonomyLinkListRenderer, its subclasses or NodePathEllipsis in your own components and rely on the taxonomy path being shortened again on resize, add a single buffered resize listener to your component. It should call TaxonomyUtil.reapplyEllipsis(this, createRenderer), where createRenderer returns the same renderer you use to render the row.

  • If you have customized NodePathEllipsis, TaxonomyLinkListRenderer, TaxonomyRenderer, TaxonomyUtil, TaxonomyLinkListGridPanelBase or TaxonomySuggestionsLinkListPanelBase, merge your changes carefully.

(CMS-31949)

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.