Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

alertify doesn't remember to resize when alertifying second time #136

Open
kirkdm opened this issue Mar 20, 2017 · 0 comments
Open

alertify doesn't remember to resize when alertifying second time #136

kirkdm opened this issue Mar 20, 2017 · 0 comments

Comments

@kirkdm
Copy link

kirkdm commented Mar 20, 2017

Expected behavior

I have resizeTo('70%','70%') and when I call it the second time it doesn't remember to resize it just remove the width and height

I'm navigating between routes through javascript with hash tags using Backbone.js

Actual behavior

when call the function a second time it doesn't reproduce the previous behavior it just loads a dialog without the width and height
Whats happening is that it resizes to the 70%, 70% but then it removes the width and hieght and goes to a small dialog

Steps to reproduce the behavior

alertifyApplicationError: function(message) {

	alertify.closeAll();			

	alertify.alert().setting({
		'closable': false, 
		'resizable': true,
		onshow:function() {
			$('html').css({ padding: '0px'});
		},
		onclose:function() {   
			$('html').css({ padding: '0px'});
		}	
	})
	.resizeTo('70%','70%')
	.setHeader('<i class="fa fa-times-circle fa-2x" aria-hidden="true" style="color:red"></i> <span style="line-height: 2.5; position: absolute; left: 60px; top: 12px;">Application Error</span>')        	
	.setContent(message).show();
},		

Version of Alertify in use

v1.8.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant