aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2020-01-15 16:25:47 -0500
committerSam Wilkins <samwilkins333@gmail.com>2020-01-15 16:25:47 -0500
commitc9a1e2dbff70bf7033aaef6d5f468f43ee726aae (patch)
tree833c8c6001a8e384ffd09db7ead5108fc55e1d9e /src
parent3ab47ee803372686966092751bd6a589b62a17c6 (diff)
almost nothing
Diffstat (limited to 'src')
-rw-r--r--src/client/views/CollectionMulticolumnView.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/CollectionMulticolumnView.tsx b/src/client/views/CollectionMulticolumnView.tsx
index 0aa615ffc..3231c0da1 100644
--- a/src/client/views/CollectionMulticolumnView.tsx
+++ b/src/client/views/CollectionMulticolumnView.tsx
@@ -47,14 +47,14 @@ export default class CollectionMulticolumnView extends CollectionSubView(Multico
<div className={"collectionMulticolumnView_outer"}>
<div className={"collectionMulticolumnView_contents"}>
{this.configuration.map(config => {
- const { target } = config;
+ const { target, columnWidth } = config;
if (target instanceof Doc) {
let computedWidth: number = 0;
- const widthSpecifier = Cast(config.columnWidth, "number");
+ const widthSpecifier = Cast(columnWidth, "number");
let matches: RegExpExecArray | null;
if (widthSpecifier !== undefined) {
computedWidth = widthSpecifier;
- } else if ((matches = /([\d.]+)\%/.exec(StrCast(config.columnWidth))) !== null) {
+ } else if ((matches = /([\d.]+)\%/.exec(StrCast(columnWidth))) !== null) {
computedWidth = Number(matches[1]) / 100 * PanelWidth();
}
return (!computedWidth ? (null) :