How to normal resize & drag UI Dialog in scrolled window/area?
Is top/left correction of Dialog really necessary? (how to correct coordinates that both works)
How about fixing Dialog? What changes then?
Is this a jQuery-UI bug?
$("#myD").dialog({
title: "Dialog TITLE",
modal: true,
resizable: true,
draggable: true,
closeOnEscape: true,
width: 400,
height: 300,
position: { my: "left top", at: "left+350 top+200"},
buttons: buttons,
open: function(event, ui) {
// Set UI-Dialog fixed
$(this).parent().css("position","fixed");
/*
var top = parseInt($(this).parent().css("top"));
var left = parseInt($(this).parent().css("left"));
var scrollTop = $(document).scrollTop();
var scrollLeft = $(document).scrollLeft();
var newTop = top - scrollTop;
var newLeft = left - scrollLeft;
$(this).parent().css("top",newTop+"px");
$(this).parent().css("left",newLeft+"px");
*/
}
});
I see some questions in that way, but no satisfactory answers found.
I'm using jQuery 1.9.1 and jQuery UI 1.10.4
Thanks
jsfiddle example (try resize, drag, resize again, etc.)
EDIT: Found relevant jQuery UI Bug
I have a React app which is at http://localhost:3000/ and Laravel API is at http://localhost/blog/public/api/ I get the following error Access to fetch at 'http://localhost/blog/public/api/auth/...
I have a React app which is at http://localhost:3000/ and Laravel API is at http://localhost/blog/public/api/ I get the following error Access to fetch at 'http://localhost/blog/public/api/auth/...
I have some basic html below, and for some reason it's not recognizing the js file I linked in the script tag. Am I linking it incorrectly in some way?: <html> <head> <link rel="...
I have some basic html below, and for some reason it's not recognizing the js file I linked in the script tag. Am I linking it incorrectly in some way?: <html> <head> <link rel="...
I understand that 2000 options in a select box is going to bring along some performance issues, but it works fine on Chrome and Firefox and Safari. Basically, I am calling a web service which ...
I understand that 2000 options in a select box is going to bring along some performance issues, but it works fine on Chrome and Firefox and Safari. Basically, I am calling a web service which ...
I learn JavaScript now, and encounter with next problem: I have page with some frames, and I want to load some page into one of specified frames; But code below does not do what I want. Could you ...
I learn JavaScript now, and encounter with next problem: I have page with some frames, and I want to load some page into one of specified frames; But code below does not do what I want. Could you ...