Comments (13)
Show me how you are calling it?
from electron-alert.
and a screenshot of the behaviour
from electron-alert.
from electron-alert.
Position must be as per sweet alert docs.
from electron-alert.
Whatever position I put is the same..I tried now with
position: 'bottom-end',
and it appears in the same place
from electron-alert.
let positions = {
top: "topCenter",
"top-start": "topLeft",
"top-end": "topRight",
center: "center",
"center-start": "leftCenter",
"center-end": "rightCenter",
bottom: "bottomCenter",
"bottom-start": "bottomLeft",
"bottom-end": "bottomRight"
};
if (swalOptions.position) {
this.position = positions[swalOptions.position] || "center";
delete swalOptions.position;
}
if (!(isMac && (parent !== undefined && parent !== null))) {
new Positioner(this.browserWindow).move(this.position);
}
from electron-alert.
Is if (!(isMac && (parent !== undefined && parent !== null))) {
satisfied for you?
from electron-alert.
I'm sorry but in which function I should put that code? I tried to insert it inside Alert.js under static fireToast but I did'nt defined parent
I'm under OSX.
Kind Regard
from electron-alert.
Is existing code
from electron-alert.
I'm wondering which execution path it takes
from electron-alert.
My code is in main.js in a ipcMain.on.
I solved sending back to renderer a message and using Swal from the other side, but it's really useful your module as is possible to call the alert from the main process.
It's a pity the toast is this strange behaviour but thanks a lot the same for your time and work!!
from electron-alert.
@zensabbah This issue has been resolved in v0.1.17
.
It was a major bug in my code.
from electron-alert.
Ok, thanks a lot!
from electron-alert.
Related Issues (12)
- Use contextIsolation HOT 14
- [Feature Request] Add options to inject css style HOT 5
- Electron alert not working in electron": "15.1.1" HOT 3
- Position toast with respect to window not desktop
- bwOptions title fix HOT 1
- Font family ignored in title (or html) properties for swalOptions HOT 22
- Problem with Menu HOT 2
- Feature request: clean stack
- implement preConfirm
- globalShortcut.registerAll is not a function HOT 11
- allowOutsideClick option 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 electron-alert.