-
Notifications
You must be signed in to change notification settings - Fork 506
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
Comments
Update: |
These seems to be a problem, can you please create a jsfiddle for this. |
I confirmed this is a bug. fixing it asap |
Have tested using material and supervan themes, both are now working as expected. Thanks so much for your prompt help with this. |
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:
Modal:
The text was updated successfully, but these errors were encountered: