Comments (2)
I forgot to mention that I modified the CSS also. I put width to auto, as the AweetAlert default width was not working with what I wanted:
from bootstrap-sweetalert.
Andrei, you have to dynamically update the margins of the alert also when you use dynamic width content inside the alert container.
After you generate the dynamic content, just calculate the width and set margin-left: -(newWidth)/2
from bootstrap-sweetalert.
Related Issues (20)
- Unknown alert type: input
- Text clipping in title HOT 4
- location.reload(true) not working after timer is expired HOT 1
- Callback cancel is missing HOT 1
- Using with select input HOT 1
- swal.queeu Error
- Please help me to slove more question!
- redirect to another page HOT 1
- a third choice option
- Unable to show Alert Message
- Cannot read property 'parentNode' of null
- How to save sweet alert prompt in a js variable HOT 1
- Can you update the sweetalert version? HOT 9
- Error message is showing the default Input box and error message
- ICON COLOR
- Focus on Cancel Button on opening alert
- support of commonjs?
- The sweetalerts are not closing , and giving a TypeError value of undefined?
- Replacing Plain Javascript with better looking SweetAlert in PHP Form
- Prompt w/ Sweet Alert into Variable? HOT 1
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 bootstrap-sweetalert.