Skip to content

Commit 5a4d95a

Browse files
committed
feat: update the title only on setTitle instead of full dom rebuild
1 parent 3a4e6f0 commit 5a4d95a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/view/PanelView.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,10 @@ define(function (require, exports, module) {
311311
*/
312312
Panel.prototype.setTitle = function (newTitle) {
313313
this._tabTitle = newTitle;
314-
_updateBottomPanelTabBar();
314+
if (_$tabsOverflow) {
315+
_$tabsOverflow.find('.bottom-panel-tab[data-panel-id="' + this.panelID + '"] .bottom-panel-tab-title')
316+
.text(newTitle);
317+
}
315318
};
316319

317320
/**

0 commit comments

Comments
 (0)