diff options
author | bob <bcz@cs.brown.edu> | 2019-11-18 15:08:05 -0500 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-11-18 15:08:05 -0500 |
commit | 6ecbfba52bad2dd64e07472b5f4ef06f95b5544b (patch) | |
tree | 527b97635021fa3b2a75737920d9f4150f138806 /src/client/views/nodes/ColorBox.tsx | |
parent | 398d3f307ec177671ba43920258d0f23a58e49f2 (diff) |
changing documentView to ignore transforms -- must be applied by view boxes
Diffstat (limited to 'src/client/views/nodes/ColorBox.tsx')
-rw-r--r-- | src/client/views/nodes/ColorBox.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/nodes/ColorBox.tsx b/src/client/views/nodes/ColorBox.tsx index fda6d64f4..40674b034 100644 --- a/src/client/views/nodes/ColorBox.tsx +++ b/src/client/views/nodes/ColorBox.tsx @@ -38,7 +38,9 @@ export class ColorBox extends DocExtendableComponent<FieldViewProps, ColorDocume render() { return <div className={`colorBox-container${this.active() ? "-interactive" : ""}`} - onPointerDown={e => e.button === 0 && !e.ctrlKey && e.stopPropagation()}> + onPointerDown={e => e.button === 0 && !e.ctrlKey && e.stopPropagation()} + style={{ transformOrigin: "top left", transform: `scale(${this.props.ContentScaling()})`, width: `${100 / this.props.ContentScaling()}%`, height: `${100 / this.props.ContentScaling()}%` }} > + <SketchPicker color={this._startupColor} onChange={InkingControl.Instance.switchColor} /> </div>; } |