When the mouse to slide the eject button on the window, below the border line will float  ,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 p0 = new Panel(new BorderLayout());
          p0.id=”p0″;
            p0.setPreferredSize(402, 482);
            p0.setBackground(“rgb(240,240,240)”);
            p0.setBorder(“plain”);//Border
           
          
            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