Hi daGizmo!
wenn x > y
y = 100px
x = Ausschnitt in der Größe von 100px
Sollte das nicht genau umgekehrt sein?
Wenn x > y, dann sollte die größere Seite nämlich x auf den Maximalwert festgelegt werden, also x = 100px.
wenn x < y
x = 100
y = Ausschnitt in der Größe von 100px
Analog...
MfG H☼psel
--
"It's amazing I won. I was running against peace, prosperity, and incumbency."
George W. Bush speaking to Swedish Prime Minister unaware a live television camera was still rolling, June 14, 2001
Selfcode: ie:% fl:( br:> va:) ls:& fo:) rl:? n4:& ss:| de:] js:| ch:? sh:( mo:) zu:)
"It's amazing I won. I was running against peace, prosperity, and incumbency."
George W. Bush speaking to Swedish Prime Minister unaware a live television camera was still rolling, June 14, 2001
Selfcode: ie:% fl:( br:> va:) ls:& fo:) rl:? n4:& ss:| de:] js:| ch:? sh:( mo:) zu:)