Quote from
fkapnist on April 2, 2023, 9:33 pm
Quote from
luishp on April 2, 2023, 12:25 pm
@fkapnist you can use neoBackgroundImage command from neoBackground plugin.
Be sure to select "cover" or "contain" for the size property.
Regards.
Thanks!
I tried this but it wasn't working
BeginJS
imagew = document.getElementById('Image1').style.width;
imageh = document.getElementById('Image1').style.height;
if (imagew > imageh) {
document.getElementById('Image1').style ="height:auto;width:791";
} else {
document.getElementById('Image1').style ="height:740;width:auto";
maximize();
}
EndJS
Quote from
luishp on April 2, 2023, 12:25 pm
@fkapnist you can use neoBackgroundImage command from neoBackground plugin.
Be sure to select "cover" or "contain" for the size property.
Regards.
Thanks!
I tried this but it wasn't working
BeginJS
imagew = document.getElementById('Image1').style.width;
imageh = document.getElementById('Image1').style.height;
if (imagew > imageh) {
document.getElementById('Image1').style ="height:auto;width:791";
} else {
document.getElementById('Image1').style ="height:740;width:auto";
maximize();
}
EndJS