Release Notes / Version 13.2512.1
Table Of ContentsIn 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
taxonomyRendererinTaxonomyLinkListGridPanelBaseorTaxonomySuggestionsLinkListPanelBaseto use your own renderer, overridecreateTaxonomyRenderer(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 orNodePathEllipsisin 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 callTaxonomyUtil.reapplyEllipsis(this, createRenderer), wherecreateRendererreturns the same renderer you use to render the row.If you have customized
NodePathEllipsis,TaxonomyLinkListRenderer,TaxonomyRenderer,TaxonomyUtil,TaxonomyLinkListGridPanelBaseorTaxonomySuggestionsLinkListPanelBase, merge your changes carefully.
(CMS-31949)


