Skip to content

Commit

Permalink
SVY-19825 Multifileupload throws error after updating to 2024.12 RC -
Browse files Browse the repository at this point in the history
update
  • Loading branch information
cPecican committed Dec 11, 2024
1 parent 8d237f2 commit f2d4dd1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions multifileupload/multifileupload.spec
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"language": { "type": "string", "default": null, "values": ["English", "Spanish", "German", "French", "Dutch", "Italian", "Chinese", "Czech", "Danish", "Finnish", "Greek", "Hungarian", "Japanese", "Persian", "Russian", "Swedish", "Turkish"], "tags": { "doc": "One of the language packs shipped. If you need to provide your own translations, use the localeStrings property."} },
"localeStrings": { "type": "map", "tags": { "doc": "Any number of key/value pairs to translate single strings in the component, overriding the ones provided by the language pack selected." } },
"size": { "type": "dimension", "default": { "width": 290, "height": 450 } },
"responsiveWidth": { "type": "string", "default": "0", "tags": { "scope" : "design", "doc": "Width to be set in a responsive form. When responsiveWidth is set to 0, the component will use some default width value (290px). Can be a number (in pixels) or a percent." } },
"responsiveHeight": { "type": "int", "default": 0, "tags": { "scope" : "design", "doc": "Height (in pixels) to be set in a responsive form. When responsiveSize is set to 0, the component will use some default height value (450px)." } },
"responsiveWidth": { "type": "string", "default": "290", "tags": { "scope" : "design", "doc": "Width to be set in a responsive form. Can be a number (in pixels) or a percent." } },
"responsiveHeight": { "type": "int", "default": 450, "tags": { "scope" : "design", "doc": "Height (in pixels) to be set in a responsive form.} },
"options": { "type": "map" },
"tusOptions": { "type": "map", "tags": { "scope" : "design" , "doc":"Look at the Uppy TUS options what you can set here like chunkSize: nrOfBytes"} },
"webcamOptions": { "type": "json", "default" : { "target" : "Dashboard", "showVideoSourceDropdown": true } ,"tags": { "scope" : "design" , "doc":"Look at the Uppy webcam plugin options what you can set here like showVideoSourceDropdown"} }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,9 @@ export class ServoyExtraMultiFileUpload extends ServoyBaseComponent<HTMLDivEleme
height: this.cssPosition.height
}
} else {
const responsiveWidth = this.responsiveWidth || '0';
return {
width: responsiveWidth != '0' && this.convertToNumberOrReturnValue(responsiveWidth) || this.size.width,
height: this.responsiveHeight || this.size.height
width: this.convertToNumberOrReturnValue(this.responsiveWidth),
height: this.responsiveHeight
}
}
}
Expand Down

0 comments on commit f2d4dd1

Please sign in to comment.