Thanks to visit codestin.com
Credit goes to github.com

Skip to content

dialog not positioning correctly in .net aspx #228

@cscarlsson

Description

@cscarlsson

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions