Comments (9)
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.
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.
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.
try inline style
body style="height: 100vh!important;"
it works for me
from razor.sweetalert2.
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.
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.
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.
Im having the same issue...
swal2-height-auto breaks my layout
iḿ using 9.17.1
from razor.sweetalert2.
Try adding this to the end of the document.
<script> document.body.classList.remove('swal2-height-auto'); </script>
from razor.sweetalert2.
Related Issues (20)
- How to stop the timer when toasted? HOT 3
- Please may you provide documentation on how to use Html with PreConfirm? HOT 2
- 'IServiceCollection' does not contain a definition for 'AddSweetAlert2' HOT 5
- Dev Dependencies HOT 1
- FireAsync with SweetAlertOptions not working with custom JsRuntime serialization HOT 3
- Global setup options on the service registration HOT 17
- 'CurrieTechnologies' was undefined Error HOT 11
- Can't inject 'SweetAlertService' on Razor Component HOT 1
- Is there a similar library for .NET Core MVC? HOT 2
- .Net 6 Support HOT 5
- 5.1.0 Throwing JSDisconnectedException after browser closed, left then reopened HOT 1
- Example is incorrect
- Nugget not working HOT 1
- Target property in SweetAlertOptions doesn't appear to be working HOT 1
- razorpage .net6 HOT 9
- How to add custom inputs?
- 'CurrieTechnologies' was undefined HOT 3
- Interface IAsyncSweetAlertService: public instead of protected
- Bug Color - Razor/Blazor HOT 3
- showloadingAsync loading text HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from razor.sweetalert2.