I have an symbol with the dimensions 1280x720px. This symbol is horizontally and vertically centred. It should be scaled if the width of the window is smaller than 1280px or the height of the window is smaller than 720px. It should therefore only be scaled smaller if there is not enough space. It should not be scaled larger than the original size of 1280x720px.
I tried to fix it via CSS with max-width and max-height, but it doesn't work.
As the layout engine uses transforms, the actual width isn't changed. Hence, the min-width rule you are using isn't changing anything. You could just do your own scaling using JavaScript or use something like a media query if you can rely on having the full screen.
That is correct… just a hack for this specific case. Another approach would be an decorator that filters transform and sets the scale if > 1. Although, i hate manipulating transforms as there is no good interface other than string replacement or deep math. At least I am currently aware of.
not by setting an explicit max-width-value, but as the parentgroup does not resize its height the width of the symbol won't be larger than the orig layoutwidth
Oh, now I see your file above. Sorry about that… I completely missed that, we must have replied in close proximity. Indeed, genius … @h_classen! Learned another thing!