Reputation: 595
I have a page that must run in IE7 quirks mode and was relying on jQuery UI Modal dialog until I realized this. Are there any alternatives?
Upvotes: 0
Views: 778
Reputation: 11
You can use custom js in such cases since it's more flexible. To center the div you should change onclick behaviour of the show button to following:
pos = get_scroll();
$("#dialog").css({
'top': pos.y,
'left': pos.x + window.screen.availWidth / 2,
'margin-left': 50}
).show();
But you'll have to implement modal behaviour to complete this piece of code
Upvotes: 1