From 64334336e7d17f2aec3151f73e8f6dbf7cf78940 Mon Sep 17 00:00:00 2001 From: bobzel Date: Mon, 14 Sep 2020 12:49:51 -0400 Subject: fixed linear view to allow dropped images to be seen --- src/client/views/collections/CollectionLinearView.tsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/client/views/collections/CollectionLinearView.tsx b/src/client/views/collections/CollectionLinearView.tsx index 22c1f51a6..e1c7339c9 100644 --- a/src/client/views/collections/CollectionLinearView.tsx +++ b/src/client/views/collections/CollectionLinearView.tsx @@ -18,6 +18,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { LinkDescriptionPopup } from '../nodes/LinkDescriptionPopup'; import { Tooltip } from '@material-ui/core'; import { all } from 'bluebird'; +import { ContentFittingDocumentView } from '../nodes/ContentFittingDocumentView'; type LinearDocument = makeInterface<[typeof documentSchema,]>; @@ -132,15 +133,15 @@ export class CollectionLinearView extends CollectionSubView(LinearDocument) { const nested = pair.layout._viewType === CollectionViewType.Linear; const dref = React.createRef(); const nativeWidth = NumCast(pair.layout._nativeWidth, this.dimension()); - const deltaSize = nativeWidth * .15 / 2; const scalable = pair.layout.onClick || pair.layout.onDragStart; return
- this.dimension()}// ugh - need to get rid of this inline function to avoid recomputing - PanelHeight={nested ? pair.layout[HeightSym] : () => this.dimension()} + PanelWidth={nested ? pair.layout[WidthSym] : this.dimension} + PanelHeight={nested ? pair.layout[HeightSym] : this.dimension} renderDepth={this.props.renderDepth + 1} focus={emptyFunction} backgroundColor={this.props.backgroundColor} -- cgit v1.2.3-70-g09d2