Browse Source

better min size limit in image ui

Alexander Rose 5 years ago
parent
commit
862eda6dd4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/mol-plugin/ui/image.tsx

+ 2 - 2
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']] })
         }