Hi folks,
I´ve a hard time to set a max-percentage for a plugin. I need a plugin to scale with the screen but just until it reaches a specific height (640px). The logical way would be to use the onresize-event, but I just can´t find the right code
This is what I did try:
onresize="if(plugin[scaler] !== null,if(plugin[scaler].pixelheight GT 640,set(plugin[scaler].height,640),set(plugin[scaler].height,70%)));"
And this what the line does:
- check if plugin scaler exist
- check if plugin scalers height is greater than 640
- if plugin scaler is greater than 640 set height to 640, otherwise set height to 70%
It works somehow, but if I resize the browser the plugins height jumps really weird and after releasing the mouse button the plugin not always gets the correct size. As you can see, I need some help here
Best regards
Nupsi