Giter VIP home page Giter VIP logo

Comments (9)

lixaotec avatar lixaotec commented on May 24, 2024 10

I didint worked to me.. missed to mention im using angular 8 .

Wish to try setting heightAuto to false, in params.. it seems it does the trick, seems more polite solution.
Thanks anyway

from razor.sweetalert2.

shawty avatar shawty commented on May 24, 2024 5

No worries.

You could still offer a config option in the blazor library though?

I've actually managed to work around it by including a CSS file right at the end of my Blazor host file that contains this

body.swal2-height-auto {
  height: 100% !important
}

If the blazor lib had a config option that could enable/disable this simple rule after SWAL's main CSS was loaded, then that would solve thew problem.

from razor.sweetalert2.

shawty avatar shawty commented on May 24, 2024 3

The way I solved it was as follows:

I added

body.swal2-height-auto {
  height: 100% !important
}

To my site-wide style sheet AFTER I loaded the swal base CSS

from razor.sweetalert2.

mkhamis266 avatar mkhamis266 commented on May 24, 2024 3

try inline style
body style="height: 100vh!important;"
it works for me

from razor.sweetalert2.

Bilge avatar Bilge commented on May 24, 2024 2

For anyone coming from Google, this was fixed two years prior to the creation of the issue, at least in the upstream library.

See: sweetalert2/sweetalert2#1111 (comment)

from razor.sweetalert2.

Basaingeal avatar Basaingeal commented on May 24, 2024

This appears to be the behavior of the SweetAlert2 JavaScript library. This library is just a wrapper to call the JavaScript library with a C# interface in Blazor.

Please raise an issue in the https://github.com/sweetalert2/sweetalert2 repo.

from razor.sweetalert2.

Basaingeal avatar Basaingeal commented on May 24, 2024

It is not my intention for this library to add or alter any functionality apart from what the upstream library offers. It is intended only as a .NET interface over the JavaScript library. Users shouldn't see any additional or different behavior than what they'd get if they'd used the JavaScript library.

from razor.sweetalert2.

lixaotec avatar lixaotec commented on May 24, 2024

Im having the same issue...

swal2-height-auto breaks my layout

iḿ using 9.17.1

from razor.sweetalert2.

FacuRodriJ avatar FacuRodriJ commented on May 24, 2024

Try adding this to the end of the document.
<script> document.body.classList.remove('swal2-height-auto'); </script>

from razor.sweetalert2.

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.