Skip to content

Problem for small screen using bootstrap modals #129

@danielemaddaluno

Description

@danielemaddaluno
Issue Overview

Bootstrap modals does not work responsively following one of these modals examples.

Current Behaviour

Bootstrap modals are not visible in small screens.

Expected Behaviour

The modal should work even on mobiles as in the Bootstrap modals examples

How to reproduce
  1. Paste in the index.xhtml, inside the <ui:define name="body"> the following code:
  <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModalCenter">
      Launch demo modal
  </button>
  
  <!-- Modal -->
  <div class="modal" tabindex="-1" role="dialog" id="exampleModalCenter">
    <div class="modal-dialog" role="document">
      <div class="modal-content">
        <div class="modal-header">
          <h5 class="modal-title">Modal title</h5>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&#215;</span>
          </button>
        </div>
        <div class="modal-body">
          <p>Modal body text goes here.</p>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-primary">Save changes</button>
          <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
        </div>
      </div>
    </div>
  </div>
  1. Click the button Launch demo modal.
  2. Try shinking the screen size, the modal will disappear (even on mobiles the modal is not positioned well)
Additional Information
  • Mojarra version: 2.2.15
  • AdminTemplate version: 1.0.0-RC18
  • PrimeFaces version: 6.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions