EasyUI Forum
April 26, 2024, 03:09:18 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Poll
Question: easyui1.4.5,dialog can not drag in ie8 when "modal: true"  (Voting closed: September 05, 2016, 06:33:01 PM)
Y - 0 (0%)
N - 0 (0%)
Total Voters: 0

Pages: [1]
  Print  
Author Topic: easyui1.4.5,dialog can not drag in ie8 when "modal: true"  (Read 7004 times)
guan_zo
Newbie
*
Posts: 4


View Profile Email
« 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")
        });
    });
« Last Edit: July 22, 2016, 06:35:54 PM by guan_zo » Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 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>
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!