decode mode result textarea size * QR version

This commit is contained in:
wphiphi 2022-01-02 21:01:28 +01:00 committed by GitHub
parent f3918f18bf
commit b396c5e611
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1595,6 +1595,8 @@ $(document).ready(function(){
decodeFromBase64(image, function(decodedData){ decodeFromBase64(image, function(decodedData){
if(decodedData != "error decoding QR Code"){ if(decodedData != "error decoding QR Code"){
$("#decode-message").val(decodedData); $("#decode-message").val(decodedData);
//resize for text based on QR version
$("#decode-message").css("height", (17+4*qr_version)*3+"px");
} }
}); });
} }