aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/WebBox.tsx
diff options
context:
space:
mode:
authorBob Zeleznik <zzzman@gmail.com>2020-03-19 12:04:32 -0400
committerBob Zeleznik <zzzman@gmail.com>2020-03-19 12:04:32 -0400
commit85a67ff30d86fa51b4534f717d3857aa23b732d1 (patch)
tree02c0cb1311669878acc18a28907cbf055dcc9282 /src/client/views/nodes/WebBox.tsx
parent1693e9daf1657c1fc45afa3fa14f0a0df0e01e13 (diff)
added screen capture doc
Diffstat (limited to 'src/client/views/nodes/WebBox.tsx')
-rw-r--r--src/client/views/nodes/WebBox.tsx9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/client/views/nodes/WebBox.tsx b/src/client/views/nodes/WebBox.tsx
index 557adfc03..591864f2c 100644
--- a/src/client/views/nodes/WebBox.tsx
+++ b/src/client/views/nodes/WebBox.tsx
@@ -323,7 +323,14 @@ export class WebBox extends DocAnnotatableComponent<FieldViewProps, WebDocument>
</>);
}
render() {
- return (<div className={"webBox-container"} >
+ const dragging = "";//</div>!SelectionManager.GetIsDragging() ? "" : "-dragging";
+ return (<div className={`webBox-container${dragging}`}
+ style={{
+ transform: `scale(${this.props.ContentScaling()})`,
+ width: `${100 / this.props.ContentScaling()}%`,
+ height: `${100 / this.props.ContentScaling()}%`,
+ pointerEvents: this.props.Document.isBackground ? "none" : undefined
+ }} >
<CollectionFreeFormView {...this.props}
PanelHeight={this.props.PanelHeight}
PanelWidth={this.props.PanelWidth}