aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) :