Wrong Positioning Windows in FireFox.

Hello,

I have a window inside in a Canvas, When I try positioning the window don´t work in FireFox 3.5.2. Only positioning the content bat the Windows is in a other position.

[ code]
Window window2 = new Window();
window2.setTitle(“Dragging a window”);
window2.setWidth(300);
window2.setHeight(230);
window2.setLeft(500);
window2.setTop(1);
//window2.setRect(500, 1, 400, 300);
window2.setCanDragReposition(true);
window2.setCanDragResize(true);
window2.addItem(off.addPieChart());

Canvas canvasMain = new Canvas();
canvasMain.addChild(window);
canvasMain.addChild(window2);

[/ code]

what can make to positioning well in FireFox?

I’m use Windows, gwt 1.7 and smartgwt 1.2

My Apologize for my english.

Oscar.

Hi,

Nobody have the same problem?

understand We me?

Thanks by advance!

There are lots of samples showing normal dragging of Windows in the latest Firefox. Try isolating the problem. If you think you’ve found a bug in SmartGwt, post a minimal, standalone testcase.

Hi,

I have resolved the problem. I Put the Window into a FlexTable (I don´t know Why).

	   FlexTable layout3 = new FlexTable();	
           Canvas canvasMain = new Canvas();  
           canvasMain.addChild(window);  
          canvasMain.addChild(window2);
          layout3.setHTML(1, 0, "opciones");
 	  layout3.setWidget(1,1,canvasMain);
          tabPanel.add(layout3, "panel3");

Now only put the window in Canvas and this in a tabPanel and work fine.

           Canvas canvasMain = new Canvas();  
           canvasMain.addChild(window);  
           canvasMain.addChild(window2);
          tabPanel.add(canvasMain , "panel3");

Thanks!!!

Hi,

I remember because put the FlexTable. When the TablePanel is show , this is bigger than the screen and the scrollbras are show.
But if I put the Canvas into a FlexTable this not happend. But the Windows are show wrong.

How can put size a canvas?

This don´t work.
canvasMain.setSize(“100%”, “100%”);

Thanks by advance.

Post a minimal standalone testcase with an onModuleLoad() illustrating your problem.

Hi

I have make a minimal case and the problem persist.

public class Ventana implements EntryPoint {
	protected RootPanel topPanel = RootPanel.get("principal");
	public void onModuleLoad() {
		topPanel.setWidth("100%");
		topPanel.setHeight("100%");
		VerticalPanel vPanelPrincipal = new VerticalPanel();
		vPanelPrincipal.setWidth("100%");
		vPanelPrincipal.setSpacing(5);
		DecoratedTabPanel tabPanel = new DecoratedTabPanel();
		tabPanel.setWidth("100%");
		HTML moreInfo1 = new HTML("Panel1");

		Window window = new Window();  
                window.setTitle("Dragging a window");  
                window.setRect(1, 1, 400, 300);
                window.setCanDragReposition(true);  
        window.setCanDragResize(true);   
         
        Canvas canvasMain = new Canvas();
        canvasMain.setSize("100%","100%");
        canvasMain.addChild(window);  
         
        tabPanel.add(moreInfo1, "Panel1");
        tabPanel.add(canvasMain, "Panel2");
        topPanel.add(tabPanel);;
	}
}

The TabPanel that contains the Canvas do biggest screen and the scroollbar are showing.

If i put the Canvas into a FlexTable this problem is resolved but the Windows are bad showing.

bye.