1
0
Fork 0

fix(gui): limit stride to lesser of tiles and server values

This commit is contained in:
Sean Sube 2023-05-03 19:25:18 -05:00
parent e68e405633
commit 3c1e1542a5
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ export function ImageControl(props: ImageControlProps) {
}); });
// max stride is the lesser of tile size and server's max stride // max stride is the lesser of tile size and server's max stride
const maxStride = Math.max(controlState.tiles, params.stride.max); const maxStride = Math.min(controlState.tiles, params.stride.max);
return <Stack spacing={2}> return <Stack spacing={2}>
<Stack direction='row' spacing={4}> <Stack direction='row' spacing={4}>