0
jqueryのdialogって動かすたびに再描写されるんですか?
http://jp.igniteui.com/dialog-window/loading-external-page
上記ページにあるソースをいじって(画面のサイズだけですが)動かした時。
ダイアログをゆっくり動かすと問題ないですが、
早く動かそうとするとダイアログの移動が遅れます。
また、掴んだまま(クリックしたまま)でもないのに掴んだ状態のままで動こうとします。
iframeを使用してdialogをオープンさせてるみたいなんですが、
動かすために再描画を行っているために素早く動かすとそのようなことになる。のでしょうか?
(要はdialogの仕様)
それともサンプルソースが悪いのでしょうか?
<!DOCTYPE html>
<html>
<head>
<title></title>
<!-- Ignite UI Required Combined CSS Files -->
<link href="http://cdn-na.infragistics.com/igniteui/2016.2/latest/css/themes/infragistics/infragistics.theme.css" rel="stylesheet" />
<link href="http://cdn-na.infragistics.com/igniteui/2016.2/latest/css/structure/infragistics.css" rel="stylesheet" />
<script src="http://ajax.aspnetcdn.com/ajax/modernizr/modernizr-2.8.3.js"></script>
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="http://code.jquery.com/ui/1.11.1/jquery-ui.min.js"></script>
<!-- Ignite UI Required Combined JavaScript Files -->
<script src="http://cdn-na.infragistics.com/igniteui/2016.2/latest/js/infragistics.core.js"></script>
<script src="http://cdn-na.infragistics.com/igniteui/2016.2/latest/js/infragistics.lob.js"></script>
</head>
<body>
<button id="openDialog">
</button>
<!--igDialog target element-->
<div id="dialog">
<iframe src="http://jp.infragistics.com" frameborder="0" width="100%" height="100%"></iframe>
</div>
<script>
$(function () {
var width = 1024,
height = 768;
// Initialize the open button with igButton
$("#openDialog").igButton({ labelText: "ダイアログを開く" });
// Initialize the igDialog
$("#dialog").igDialog({
height: height,
width: width,
headerText: "http://jp.infragistics.com",
showMinimizeButton: true,
showMaximizeButton: true,
showPinButton: true
});
$("#openDialog").on({
click: function (e) {
// Open the igDialog
$("#dialog").igDialog("open");
}
});
});
</script>
</body>
</html>