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

dialog not positioning correctly in .net aspx #228

Closed
cscarlsson opened this issue Mar 8, 2017 · 4 comments
Closed

dialog not positioning correctly in .net aspx #228

cscarlsson opened this issue Mar 8, 2017 · 4 comments
Labels

Comments

@cscarlsson
Copy link

Versions:
jquery 1.8.3 (tried with both local and from google cdn)
.net 3.5 (c#) (Visual Studio 2015 Community Edition)
chrome Version 56.0.2924.87 (64-bit)

Using a .html file the dialog works perfectly, however if I use an aspx file with or without master page the dialog always positions vertically centered and horizontally to the left as per attached screenshots. I have tried this on a blank project as well as an existing project that I am supporting. Screenshots attached at bottom.

Javascript used is:

function testAlert() {
$.alert({
title: 'Alert!',
content: 'Simple alert!',
boxWidth: '30%',
theme: 'material',
useBootstrap: false,
});
return false;
}

function testConfirm() {
$.confirm({
title: 'Confirm!',
content: 'Simple confirm!',
boxWidth: '30%',
theme: 'material',
buttons: {
confirm: function () {
$.alert('Confirmed!');
},
cancel: function () {
$.alert('Canceled!');
},
somethingElse: {
text: 'Something else',
btnClass: 'btn-blue',
keys: ['enter', 'shift'],
action: function () {
$.alert('Something else?');
}
}
},
useBootstrap: false
});
return false;
}

Basic alert:
image

Modal:
image

@cscarlsson
Copy link
Author

Update:
Removing the theme allows the box to appear in the centre. Not sure this is intended but will be a workaround for me.

@craftpip
Copy link
Owner

craftpip commented Mar 9, 2017

These seems to be a problem, can you please create a jsfiddle for this.
There must be some problem with the existing stylesheet that overwrites with the jconfirm styles.

@craftpip craftpip added the bug label Mar 9, 2017
@craftpip
Copy link
Owner

craftpip commented Mar 9, 2017

I confirmed this is a bug. fixing it asap

craftpip added a commit that referenced this issue Mar 9, 2017
@cscarlsson
Copy link
Author

Have tested using material and supervan themes, both are now working as expected. Thanks so much for your prompt help with this.

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

No branches or pull requests

2 participants