From 39bd64b0a4f0532e2eebf2bac4155f4a52827662 Mon Sep 17 00:00:00 2001 From: Domagoj Kriskovic Date: Tue, 4 Jul 2023 11:41:23 +0200 Subject: [PATCH] [cm6] fix toolbar overflow button calculation (#13669) GitOrigin-RevId: 11380a5661067a285e0c0de82a37e085fc395f03 --- .../js/features/source-editor/components/codemirror-toolbar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/frontend/js/features/source-editor/components/codemirror-toolbar.tsx b/services/web/frontend/js/features/source-editor/components/codemirror-toolbar.tsx index fb038297bf..7b92b0fb10 100644 --- a/services/web/frontend/js/features/source-editor/components/codemirror-toolbar.tsx +++ b/services/web/frontend/js/features/source-editor/components/codemirror-toolbar.tsx @@ -53,7 +53,7 @@ const Toolbar = memo(function Toolbar() { const buildOverflow = useCallback( (element: Element) => { setOverflowOpen(false) - setOverflowed(false) + setOverflowed(true) if (overflowBeforeRef.current) { overflowedItemsRef.current = new Set()