How to make a banner adaptive only in height?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
8 views
You need to create html 5 banner in Adobe Animate with a fixed width(300px), but adaptive according to the height(but the minimum height should remain 600px).
Animate when you configure publish generated html with this script
function makeResponsive(isResp, respDim, isScale, scaleType) { var lastW, lastH, lastS=1; window.addEventListener('resize', resizeCanvas); resizeCanvas(); function resizeCanvas() { var w = lib.properties.width, h = lib.properties.height; var iw = window.innerWidth, h=window.innerHeight; var pRatio = window.devicePixelRatio || 1, xRatio=iw/w, yRatio=ih/h, sRatio=1; if(isResp) { if((respDim=='width'&&lastW==iw) || (respDim=='height'&&lastH==ih)) { sRatio = lastS; } else if(!isScale) { if(iw

However, this code ultimately expands the banner when you change the height and width and makes it less than 600 px in height.
how to rewrite the function?
by | 8 views

1 Answer

0 like 0 dislike
else if(!isScale) { if(iw
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
0 like 0 dislike
2 answers
asked Apr 4, 2019 by zzloy
110,608 questions
257,186 answers
0 comments
35,648 users