From 862eda6dd4f3748d241bf2c8a1b0570b2db1937a Mon Sep 17 00:00:00 2001 From: Alexander Rose <alex.rose@rcsb.org> Date: Wed, 16 Oct 2019 17:54:46 -0700 Subject: [PATCH] better min size limit in image ui --- src/mol-plugin/ui/image.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mol-plugin/ui/image.tsx b/src/mol-plugin/ui/image.tsx index 5ed068ea8..0653fca1b 100644 --- a/src/mol-plugin/ui/image.tsx +++ b/src/mol-plugin/ui/image.tsx @@ -156,8 +156,8 @@ export class ImageControls<P, S extends ImageControlsState> extends CollapsableC size: PD.MappedStatic('custom', { canvas: PD.Group({}), custom: PD.Group({ - width: PD.Numeric(width, { min: 1, max, step: 1 }), - height: PD.Numeric(height, { min: 1, max, step: 1 }), + width: PD.Numeric(width, { min: 128, max, step: 1 }), + height: PD.Numeric(height, { min: 128, max, step: 1 }), }, { isFlat: true }) }, { options: [['canvas', 'Canvas'], ['custom', 'Custom']] }) } -- GitLab