EasyUI Forum

General Category => Bug Report => Topic started by: guan_zo on July 22, 2016, 06:33:01 PM



Title: easyui1.4.5,dialog can not drag in ie8 when "modal: true"
Post by: guan_zo on July 22, 2016, 06:33:01 PM
I close the dialog  and then open,the dialog can not drag in ie8 when "modal: true",
$(function () {
        $("#div").dialog({
            width: 200,
            height: 200,
            modal: true,
            content: 'test',
            title: "title"
        });
        $("#btn").click(function () {
            $("#div").dialog("open")
        });
    });


Title: Re: easyui1.4.5,dialog can not drag in ie8 when "modal: true"
Post by: stworthy on July 23, 2016, 09:12:06 AM
Please try to override the $.fn.window.getMaskSize function.
Code:
<script>
$.fn.window.getMaskSize = function(target){
var state = $(target).data('window');
var inline = (state && state.options.inline);
return {
width: (inline ? '100%' : $(window).width()),
height: (inline ? '100%' : $(window).height())
};
};
</script>