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

Select2: Non-Functional in a Maximised Region #88

Open
tonyc555 opened this issue Sep 24, 2017 · 2 comments
Open

Select2: Non-Functional in a Maximised Region #88

tonyc555 opened this issue Sep 24, 2017 · 2 comments
Assignees
Milestone

Comments

@tonyc555
Copy link

If the Select2 plugin is used in a Theme 42 application in a region that has the "Show Maximize Button" template option the drop-down and text selection does not appear when the region is maximized. The Select 2 item basically becomes non editable.

The problem manifests itself in Single Value and Multiple Value select lists. I haven't tried it with tagging support.

Reproducing the problem: Create a Theme 42 application that has a page with a region with the "Show Maximize Button" template setting. Add a Select2 LOV to that region. Run the application and maximize the region containing the Select2.

Problem manifests itself in the following browsers: Google Chrome 60, Internet Explorer 11, Internet Explorer Edge, Firefox 55

We are using the latest version of Apex: 5.1.2.00.09, Oracle 12.1 and the latest version of Select2: 3.0.3

@maxime-tremblay maxime-tremblay self-assigned this Sep 25, 2017
@maxime-tremblay
Copy link

Hello @tonyc555

Until the fix is included in the plugin, you can add the following CSS to your application.

.js-regionIsMaximized .select2-container--open {
    visibility: visible;
}

Regards
Maxime

@tonyc555
Copy link
Author

Hi Maxime,

I found another workaround that also fixes the problem of the drop down becoming displaced when using pinch-zoom on mobile devices, described here: https://select2.org/troubleshooting/common-problems#the-dropdown-becomes-misaligned-displaced-when-using-pinch-zoom

Add a static id to the region where the Select2 is contained and use the following as an Extra Option

dropdownParent: $("#regionStaticId")

@nbuytaert1 nbuytaert1 added this to the v3.1.0 milestone Oct 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants