When the mouse to slide the eject button on the window, There are problems under IE11,

Code is as follows:

var z = new zebra.ui.zCanvas(450, 300), r = z.root;
            z.fullScreen();

            r.setLayout(new FlowLayout(CENTER, CENTER)); //TOP
            
             var background = zebra.ui.loadImage(“images/background.png”);
             
           var p0 = new Panel(new BorderLayout());
       
            p0.setPreferredSize(402, 482);
            p0.setBackground(new Pattern(background));
       
            var b=new Button(“test”);
          b.bind(function(e){
                    var p1 = new Panel(new FlowLayout());
                    p1.setPadding(5);
                    var win = new Window(“tt”,p1);
                    p1.add(TOP,new Button(“ss”));
               
                    win.root.setLayout(new BorderLayout());
                 
                  win.setSize(600, 350);
                  var canvas = e.getCanvas();
                  win.setLocation(~ ~((canvas.width – win.width) / 2),
                          ~ ~((canvas.height – win.height) / 2));
               
                  zebra.ui.showModalWindow(r, win);                  
            });
                        
            r.add(p0);
            r.add(b);

            z.$context.save();

            r.repaint();

Please login or Register to Submit Answer