From 0888ec6480af9b3447f1de15ae97b7ef8f38c4aa Mon Sep 17 00:00:00 2001 From: krassowski <5832902+krassowski@users.noreply.github.com> Date: Thu, 28 Jul 2022 18:49:40 +0100 Subject: [PATCH] Fix typos in docstrings --- packages/widgets/src/tabbar.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/widgets/src/tabbar.ts b/packages/widgets/src/tabbar.ts index a9a2d8448..0359acdfa 100644 --- a/packages/widgets/src/tabbar.ts +++ b/packages/widgets/src/tabbar.ts @@ -355,6 +355,8 @@ export class TabBar extends Widget { /** * Whether scrolling is enabled. + * + * Note: for scrolling to work the tabs need to have `min-width` set. */ get scrollingEnabled(): boolean { return this._scrollingEnabled; @@ -400,7 +402,7 @@ export class TabBar extends Widget { * The tab bar content wrapper node. * * #### Notes - * This is the node which the content node and enables scrolling. + * This is the node which wraps the content node and enables scrolling. * * Modifying this node directly can lead to undefined behavior. */ @@ -1064,7 +1066,7 @@ export class TabBar extends Widget { return; } - // Initialize the non-measured parts of the drag data, + // Initialize the non-measured parts of the drag data. this._dragData = { tab: tabs[index] as HTMLElement, index: index,