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

Since 2.3.3 Store logo automatic resize on mobile/smaller displays does not respect aspect ratio #25043

Closed
gwharton opened this issue Oct 14, 2019 · 15 comments
Assignees
Labels
Area: Frontend Component: Backend Fixed in 2.3.x The issue has been fixed in 2.3 release line Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release

Comments

@gwharton
Copy link
Contributor

gwharton commented Oct 14, 2019

Preconditions (*)

  1. Magento 2.3.3+

Steps to reproduce (*)

  1. Create a test logo image of size 400x100 pixels
    examplelogo
  2. Deploy 2.3-develop
  3. Content->Configuration->Global->Edit->Header->Upload Logo Image
  4. Content->Configuration->Global->Edit->Header->Height = 100
  5. Content->Configuration->Global->Edit->Header->Width = 400
  6. Use browser developer tools to simulate resizing screen to small sizes.

Expected result (*)

  1. Header image aspect ratio is maintained when window is resized.
  2. This screenshot is running on 2.3.2
    WRWU0MwQTm

Actual result (*)

  1. Header image does not respect aspect ratio and is resized incorrectly.
  2. This screenshot is running on 2.3-develop
    QM0eu8VGdf
@m2-assistant
Copy link

m2-assistant bot commented Oct 14, 2019

Hi @gwharton. Thank you for your report.
To help us process this issue please make sure that you provided the following information:

  • Summary of the issue
  • Information on your environment
  • Steps to reproduce
  • Expected and actual results

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.3-develop instance - upcoming 2.3.x release

For more details, please, review the Magento Contributor Assistant documentation.

@gwharton do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?

  • yes
  • no

@magento-engcom-team magento-engcom-team added the Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed label Oct 14, 2019
@shikhamis11 shikhamis11 self-assigned this Oct 14, 2019
@m2-assistant
Copy link

m2-assistant bot commented Oct 14, 2019

Hi @shikhamis11. Thank you for working on this issue.
In order to make sure that issue has enough information and ready for development, please read and check the following instruction: 👇

  • 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).

    DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.

  • 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.

  • 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • 4. Verify that the issue is reproducible on 2.3-develop branch

    Details- Add the comment @magento give me 2.3-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.3-develop branch, please, add the label Reproduced on 2.3.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • 5. Add label Issue: Confirmed once verification is complete.

  • 6. Make sure that automatic system confirms that report has been added to the backlog.

@shikhamis11 shikhamis11 added Component: Backend Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed labels Oct 14, 2019
@ghost ghost unassigned shikhamis11 Oct 14, 2019
@magento-engcom-team
Copy link
Contributor

✅ Confirmed by @shikhamis11
Thank you for verifying the issue. Based on the provided information internal tickets MC-21776 were created

Issue Available: @shikhamis11, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

@magento-engcom-team magento-engcom-team added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Oct 14, 2019
@dynamicswebkul dynamicswebkul self-assigned this Oct 15, 2019
@m2-assistant
Copy link

m2-assistant bot commented Oct 15, 2019

Hi @webkul-ramakant. Thank you for working on this issue.
Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:

  • 1. Add/Edit Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • 2. Verify that the issue is reproducible on 2.3-develop branch

    Details- Add the comment @magento give me 2.3-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.3-develop branch, please, add the label Reproduced on 2.3.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • 3. If the issue is not relevant or is not reproducible any more, feel free to close it.


@dynamicswebkul dynamicswebkul removed their assignment Oct 15, 2019
@gwharton
Copy link
Contributor Author

gwharton commented Oct 15, 2019

Infact, this looks like it affects many more images than just the logo. Any image that is too large in width to fit into the parent container is shrunk in width to fit, but not in height resulting in skewed aspect ratios everywhere.

@vivekkumar945744 vivekkumar945744 self-assigned this Oct 15, 2019
@m2-assistant
Copy link

m2-assistant bot commented Oct 15, 2019

Hi @vivekkumar-webkul. Thank you for working on this issue.
Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:

  • 1. Add/Edit Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • 2. Verify that the issue is reproducible on 2.3-develop branch

    Details- Add the comment @magento give me 2.3-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.3-develop branch, please, add the label Reproduced on 2.3.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • 3. If the issue is not relevant or is not reproducible any more, feel free to close it.


@gwharton
Copy link
Contributor Author

Seems related to the addition of max-height:100% and the removal of height:auto from the img tag in the luma style.

@extremeskillz
Copy link

I can confirm this on my install today.
Interestingly enough 2.3.3 fixed an issue I was having in 2.3.2 where the mobile version wouldn't scale on mobile browsers. 2.3.3 is now doing that properly but the height isn't adjusting. See attached screenshot.
Screenshot from 2019-10-15 19-29-20

@ghost ghost unassigned vivekkumar945744 Nov 9, 2019
@fabriciosobral
Copy link

Can I work on this? If yes, please assign

@fabriciosobral fabriciosobral self-assigned this Nov 15, 2019
@m2-assistant
Copy link

m2-assistant bot commented Nov 15, 2019

Hi @fabriciosobral. Thank you for working on this issue.
Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:

  • 1. Add/Edit Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • 2. Verify that the issue is reproducible on 2.3-develop branch

    Details- Add the comment @magento give me 2.3-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.3-develop branch, please, add the label Reproduced on 2.3.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • 3. If the issue is not relevant or is not reproducible any more, feel free to close it.


@fabriciosobral
Copy link

I am working on this

@fabriciosobral
Copy link

@magento give me 2.3-develop instance

@magento-engcom-team
Copy link
Contributor

Hi @fabriciosobral. Thank you for your request. I'm working on Magento 2.3-develop instance for you

@magento-engcom-team
Copy link
Contributor

Hi @fabriciosobral, here is your Magento instance.
Admin access: https://i-25043-2-3-develop.instances.magento-community.engineering/admin
Login: admin Password: 123123q
Instance will be terminated in up to 3 hours.

@ghost ghost unassigned abrarpathan19 Nov 20, 2019
@VladimirZaets
Copy link
Contributor

Hi @gwharton. Thank you for your report.
The issue has been fixed in #25623 by @fabriciosobral in 2.3-develop branch
Related commit(s):

The fix will be available with the upcoming 2.3.5 release.

@VladimirZaets VladimirZaets added the Fixed in 2.3.x The issue has been fixed in 2.3 release line label Nov 21, 2019
magento-engcom-team added a commit that referenced this issue Nov 21, 2019
…le/smaller displays does not respect aspect ratio #25623

 - Merge Pull Request #25623 from fabriciosobral/magento2:issue-25043-logo-automatic-resize
 - Merged commits:
   1. d0167a0
magento-engcom-team pushed a commit that referenced this issue Nov 21, 2019
…le/smaller displays does not respect aspect ratio #25623
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Frontend Component: Backend Fixed in 2.3.x The issue has been fixed in 2.3 release line Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release
Projects
None yet
Development

No branches or pull requests

9 participants