Giter Site home page Giter Site logo

Comments (7)

lubber-de avatar lubber-de commented on May 18, 2024

This fix works as long as the content of the modal does not exceed the screen height. If that's the case, the top of the modal is stuck at 50%
See (in IE11): https://jsbin.com/tenobipedu/1/edit?html,css,js,output
You need to shrink the browser Window to see the effect:

Content does not fit:
image

Content fits:
image

from fomantic-ui.

ColinFrick avatar ColinFrick commented on May 18, 2024

@lubber-de Thanks for the feedback. I will check it out

from fomantic-ui.

ColinFrick avatar ColinFrick commented on May 18, 2024

@lubber-de I added another commit to fix the IE11 scrolling modal issue: c4eed66

from fomantic-ui.

lubber-de avatar lubber-de commented on May 18, 2024

Top position is fixed with your commit, but the left value is still ignored when content is larger than screen (see first screenshot above where the height was still wrong -> its also attached to the left border.
When the content fits the screen height then the left-property is respected as expected

It seems to be fixed by adding margin-left:0 and again left: 2.5% (additional fix for #135 also then)

.ui.legacy.legacy.page.dimmer > .ui.scrolling.modal,
.ui.page.dimmer > .ui.scrolling.legacy.legacy.modal,
.ui.top.aligned.legacy.legacy.page.dimmer > .ui.modal,
.ui.top.aligned.dimmer > .ui.legacy.legacy.modal {
  top: auto !important;
  margin-left:0 !important;
  left: 2.5% !important;
  }

from fomantic-ui.

ColinFrick avatar ColinFrick commented on May 18, 2024

This would interfere with the whole legacy modal thing introduced in SUI 2.4.0.
The real problem is that the vertical scrollbar width is not taken into account when calculating the modal width.

from fomantic-ui.

ColinFrick avatar ColinFrick commented on May 18, 2024

I did some further digging and this bug affects all .scrolling legacy modals, for which the width is defined in percent:

  • fullscreen modals
  • mobile (screen width < 768px)
  • tablet (screen width < 992px)

While retrieving the modals width the scrollbar is not rendered, therefore it returns a larger width than it should - in this cases the modal is half the scrollbars width further to the left.

I'm inclined to close this issue and move the discussed issue in another one. The original issue (and your addition with the top issue) should be fixed.

from fomantic-ui.

lubber-de avatar lubber-de commented on May 18, 2024

Agreed, thanks for investigation!

from fomantic-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.