Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set img width/height attributes as an aspect ratio #940

Merged
merged 3 commits into from
Dec 9, 2019

Conversation

ausi
Copy link
Member

@ausi ausi commented Nov 6, 2019

As discussed in #937

@ausi ausi added the bug label Nov 6, 2019
@ausi ausi added this to the 4.4 milestone Nov 6, 2019
@ausi ausi self-assigned this Nov 6, 2019
@leofeyer leofeyer changed the title [4.4] Set img width/height attributes as an aspect ratio Set img width/height attributes as an aspect ratio Nov 7, 2019
@leofeyer
Copy link
Member

leofeyer commented Dec 4, 2019

We should probably wait until one of the browsers released a stable version with this feature activated. Firefox 71 will be released in december AFAIK.

Firefox 71 has been released. Do you want me to merge now?

@Toflar
Copy link
Member

Toflar commented Dec 4, 2019

The hasSingleAspectRatio has to go to the factory. That was not updated yet.

@ausi ausi force-pushed the bugfix/img-width-height-aspect-ratio-4-4 branch from d1d4545 to 4560027 Compare December 7, 2019 19:14
@ausi ausi requested review from Toflar and leofeyer December 7, 2019 19:17
Toflar
Toflar previously approved these changes Dec 7, 2019
Copy link
Member

@Toflar Toflar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another nice addition to Contao!

@leofeyer leofeyer merged commit 09ba482 into 4.4 Dec 9, 2019
@leofeyer leofeyer deleted the bugfix/img-width-height-aspect-ratio-4-4 branch December 9, 2019 13:47
@leofeyer
Copy link
Member

leofeyer commented Dec 9, 2019

Thank you @ausi.

@@ -31,6 +31,8 @@
*/
class PictureFactory implements PictureFactoryInterface
{
const ASPECT_RATIO_THRESHOLD = 0.05;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@leofeyer can we mark this as private when merging upstream?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants