Opened 11 years ago

Closed 11 years ago

#7917 closed bug (notabug)

bugs with displaying a modal window

Reported by: J3FF3 Owned by: J3FF3
Priority: minor Milestone: 1.9.0
Component: ui.dialog Version: 1.8.16
Keywords: Cc:
Blocked by: Blocking:

Description

Hi. Found 2 bugs, which appear when you call a modal window.

  1. If the browser window is open not the entire screen, and about half width/height - appears at the bottom of the scroll bar. But if a modal window to close, the scroll bar disappears.

http://i023.radikal.ru/1111/e1/18715c4ae340.jpg

  1. There are the following code:
$.post('/index.php?r=some/some', function(data) {
$('<div title="some"><form id="some_form">' + data + '</form></div>').dialog({
modal: true,
resizable: false,
buttons: {
Yo: function() {
$(this).dialog("close");
}
}
});
});

In the "data" is placed the html code, in which there are also tags <script></script>. As soon as a modal window "sees" these tags <script> in the "data" - then it pops up an empty modal window as in figure http://s017.radikal.ru/i439/1111/b7/90a8c45ddc38.jpg

Sorry for my English :)

Change History (3)

comment:1 Changed 11 years ago by svermillion

The overlay's positioning (absolute, x=0, y=0) is set in the theme css instead of the dialog code. Submitted pull request that fixes this: https://github.com/jquery/jquery-ui/pull/594

comment:2 Changed 11 years ago by Scott González

Owner: set to J3FF3
Status: newpending

Please provide a reduced test case showing the problem.

comment:3 Changed 11 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.