Skip to content

The option <var name="allowfullscreen">false</var> for mobile device don't work in product view page gallery #12285

@novakivskiy

Description

@novakivskiy

Preconditions

  1. Magento 2.1.9

Steps to reproduce

  1. edit file <theme>/etc/view.xml
  2. add <var name="allowfullscreen">false</var> to mobile breakpoints
    Example:
   <var name="breakpoints">
            <var name="mobile">
                <var name="conditions">
                    <var name="max-width">767px</var>
                </var>
                <var name="options">
                    <var name="options">
                        <var name="navigation">dots</var>
                        <var name="allowfullscreen">false</var>
                    </var>
                </var>
            </var>
        </var>
  1. clean cache and open source html
  2. find plugin "mage/gallery/gallery" init options on html page. The reason is in the type of the option "allowfullscreen" value, false as string, instead boolean.

"breakpoints": {"mobile":{"conditions":{"max-width":"767px"},"options":{"options":{"navigation":"dots","allowfullscreen":"false"}}}} }

Expected result

For screens smaller than <720px, do not open the gallery full screen

Actual result

  1. Screen http://take.ms/CfOWC

Metadata

Metadata

Assignees

Labels

Fixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions