From 055511fe60cc0c518d59c2503b538c15484ff209 Mon Sep 17 00:00:00 2001 From: Severiano Badajoz Date: Thu, 30 Jul 2020 15:33:48 -0700 Subject: [PATCH] fix colorby popup settings (#1694) --- client/src/components/categorical/category/index.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/client/src/components/categorical/category/index.js b/client/src/components/categorical/category/index.js index 77208b8e..90999deb 100644 --- a/client/src/components/categorical/category/index.js +++ b/client/src/components/categorical/category/index.js @@ -1,7 +1,7 @@ import React, { useRef, useEffect } from "react"; import { connect, shallowEqual } from "react-redux"; import { FaChevronRight, FaChevronDown } from "react-icons/fa"; -import { AnchorButton, Button, Tooltip } from "@blueprintjs/core"; +import { AnchorButton, Button, Tooltip, Position } from "@blueprintjs/core"; import { Flipper, Flipped } from "react-flip-toolkit"; import Async from "react-async"; import memoize from "memoize-one"; @@ -438,9 +438,13 @@ const CategoryHeader = React.memo( ? `Coloring by ${metadataField} is disabled, as it exceeds the limit of ${globals.maxCategoricalOptionsToDisplay} labels` : "Use as color scale" } - position="bottom" - usePortal={false} + position={Position.LEFT} + usePortal hoverOpenDelay={globals.tooltipHoverOpenDelay} + modifiers={{ + preventOverflow: { enabled: false }, + hide: { enabled: false }, + }} >