aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2020-02-07 15:56:04 -0500
committerSam Wilkins <samwilkins333@gmail.com>2020-02-07 15:56:04 -0500
commit1981278aacb8f60fdca955ea8a4ecc1e1cc5253a (patch)
treecc4aca9bf2a582a711ba6fcb990eb98f3efa7868 /src
parent7b1b0d3c79bf8ac33aad414984cb8ee1d77da11a (diff)
parent7bfb03e1340e0b4b008d7d40f8b70b215bd56329 (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src')
-rw-r--r--src/client/views/collections/CollectionStackingView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/collections/CollectionStackingView.tsx b/src/client/views/collections/CollectionStackingView.tsx
index 9e8600193..171aecc70 100644
--- a/src/client/views/collections/CollectionStackingView.tsx
+++ b/src/client/views/collections/CollectionStackingView.tsx
@@ -378,7 +378,7 @@ export class CollectionStackingView extends CollectionSubView(doc => doc) {
}
@computed get contentScale() {
const heightExtra = this.heightPercent > 1 ? this.heightPercent : 1;
- return Math.max(this.props.Document[WidthSym]() / this.props.PanelWidth(), heightExtra * this.props.Document[HeightSym]() / this.props.PanelHeight());
+ return Math.min(this.props.Document[WidthSym]() / this.props.PanelWidth(), heightExtra * this.props.Document[HeightSym]() / this.props.PanelHeight());
}
@computed get widthScale() {
return this.heightPercent < 1 ? Math.max(1, this.contentScale) : 1;