diff options
| author | bobzel <zzzman@gmail.com> | 2021-01-12 17:50:25 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-01-12 17:50:25 -0500 |
| commit | a134dab9a458efcc8b4bd60489483e68f9332397 (patch) | |
| tree | 702d21743aec1ccb53303c4dd19c020adc0dab74 /src/client/views/DocumentDecorations.tsx | |
| parent | 4a64a15b173c1e221b157608a4f07a1760e1b402 (diff) | |
fixed layout of audioBox markers
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
| -rw-r--r-- | src/client/views/DocumentDecorations.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index d7b0b5158..c2de78d09 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -62,7 +62,7 @@ export class DocumentDecorations extends React.Component<{ boundsLeft: number, b @computed get Bounds(): { x: number, y: number, b: number, r: number } { - return SelectionManager.Views().map(dv => dv.getBounds()).reduce((bounds, rect) => + const boudns = SelectionManager.Views().map(dv => dv.getBounds()).reduce((bounds, rect) => !rect ? bounds : { x: Math.min(rect.left, bounds.x), @@ -71,6 +71,7 @@ export class DocumentDecorations extends React.Component<{ boundsLeft: number, b b: Math.max(rect.bottom, bounds.b) }, { x: Number.MAX_VALUE, y: Number.MAX_VALUE, r: Number.MIN_VALUE, b: Number.MIN_VALUE }); + return boudns; } titleBlur = action((commit: boolean) => { |
