From 7584c5bed0de45f2f656fb289ff67463fb1958ef Mon Sep 17 00:00:00 2001 From: bob Date: Mon, 16 Dec 2019 10:37:14 -0500 Subject: fixed docbutton flyout from docking menu --- .../views/collections/ParentDocumentSelector.scss | 3 ++ .../views/collections/ParentDocumentSelector.tsx | 34 ++++++++++++---------- 2 files changed, 22 insertions(+), 15 deletions(-) (limited to 'src') diff --git a/src/client/views/collections/ParentDocumentSelector.scss b/src/client/views/collections/ParentDocumentSelector.scss index 20e7cb994..d293bb5ca 100644 --- a/src/client/views/collections/ParentDocumentSelector.scss +++ b/src/client/views/collections/ParentDocumentSelector.scss @@ -45,6 +45,9 @@ display: inline-block; } .buttonSelector { + div { + overflow: visible !important; + } position: absolute; display: inline-block; padding-left: 5px; diff --git a/src/client/views/collections/ParentDocumentSelector.tsx b/src/client/views/collections/ParentDocumentSelector.tsx index 5208f65c4..e00d8e83b 100644 --- a/src/client/views/collections/ParentDocumentSelector.tsx +++ b/src/client/views/collections/ParentDocumentSelector.tsx @@ -106,23 +106,27 @@ export class ButtonSelector extends React.Component<{ Document: Doc, Stack: any this.hover = !this.hover; e.stopPropagation(); } + customStylesheet(styles: any) { + return { + ...styles, + panel: { + ...styles.panel, + minWidth: "100px" + }, + }; + } render() { - let flyout; - if (this.hover) { - const view = DocumentManager.Instance.getDocumentView(this.props.Document); - flyout = !view ? (null) : ( -
- -
- ); - } - return ( - - {this.hover ? (null) : } - {flyout} - + const view = DocumentManager.Instance.getDocumentView(this.props.Document); + let flyout = ( +
+ +
); + return e.stopPropagation()} className="buttonSelector"> + + + + ; } } -- cgit v1.2.3-70-g09d2