Giter VIP home page Giter VIP logo

Comments (13)

pjebs avatar pjebs commented on May 28, 2024

Show me how you are calling it?

from electron-alert.

pjebs avatar pjebs commented on May 28, 2024

and a screenshot of the behaviour

from electron-alert.

zensabbah avatar zensabbah commented on May 28, 2024

Sorry for the delay!
Schermata 2020-03-29 alle 13 23 13
Schermata 2020-03-29 alle 13 23 54
Schermata 2020-03-29 alle 13 24 05

from electron-alert.

pjebs avatar pjebs commented on May 28, 2024

Position must be as per sweet alert docs.

from electron-alert.

zensabbah avatar zensabbah commented on May 28, 2024

Whatever position I put is the same..I tried now with

position: 'bottom-end',
and it appears in the same place

from electron-alert.

pjebs avatar pjebs commented on May 28, 2024
		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.

pjebs avatar pjebs commented on May 28, 2024

Is if (!(isMac && (parent !== undefined && parent !== null))) { satisfied for you?

from electron-alert.

zensabbah avatar zensabbah commented on May 28, 2024

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.

pjebs avatar pjebs commented on May 28, 2024

Is existing code

from electron-alert.

pjebs avatar pjebs commented on May 28, 2024

I'm wondering which execution path it takes

from electron-alert.

zensabbah avatar zensabbah commented on May 28, 2024

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.

pjebs avatar pjebs commented on May 28, 2024

@zensabbah This issue has been resolved in v0.1.17.
It was a major bug in my code.

from electron-alert.

zensabbah avatar zensabbah commented on May 28, 2024

Ok, thanks a lot!

from electron-alert.

Related Issues (12)

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.