1. #1
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    3
    gslender is on a distinguished road

      0  

    Default [FIXED] new Window reposition bug

    [FIXED] new Window reposition bug


    In explorer demo - current and version on website (ie6 hosted or FF2)
    http://extjs.com/explorer/#window

    Repeated click on each alternating button to see odd respositioning behaviour in demo. Shows windows fine on first click/open, but subsequent clicks place window in new locations?

  2. #2
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    3
    gslender is on a distinguished road

      0  

    Default


    This implementation of the window page, IMO is better - it allows the user to click on the button and new windows are created for each click. I've seen some users suggest that this concept of creating a new window does not work - but it does for me... go figure? Example like this might help to show proper implementation of using new objects etc...

    The original reposition on subsequent show() bug still exists.

    Code:
       public void onModuleLoad() {  
         RootPanel.get().add(this);  
       }  
       
       @Override  
       protected void onRender(Element parent, int pos) {  
         super.onRender(parent, pos);  
       
         final Window simple = new Window();  
         simple.setHeading("Simple Window");  
         simple.setWidth(250);  
         simple.addText(TestData.DUMMY_TEXT_SHORT);  
         simple.setScrollMode(Scroll.AUTO);  
       
           
       
         ButtonBar buttons = new ButtonBar();  
       
         buttons.add(new Button("Simple", new SelectionListener() {  
           public void componentSelected(ComponentEvent ce) {  
             simple.show();  
           }  
         }));  
       
         buttons.add(new Button("Complex", new SelectionListener() {  
           public void componentSelected(ComponentEvent ce) {  
        	   newComplexWindow().show();  
           }  
         }));  
       
         add(buttons);  
         setLayout(new FlowLayout(4));  
         layout();  
       }  
       
       private TreeItem newItem(String text, String iconStyle) {  
         TreeItem item = new TreeItem(text);  
         item.setIconStyle(iconStyle);  
         return item;  
       }  
       
       private Window newComplexWindow()
       {
    
    	     Window complex = new Window();  
    	     complex.setMaximizable(true);  
    	     complex.setHeading("Accordion Window");  
    	     complex.setWidth(200);  
    	     complex.setHeight(350);
    
    	     ToolBar toolBar = new ToolBar();  
    	     TextToolItem item = new TextToolItem();  
    	     item.setIconStyle("icon-connect");  
    	     toolBar.add(item);  
    	   
    	     toolBar.add(new SeparatorToolItem());  
    	     complex.setTopComponent(toolBar);  
    	       
    	     item = new TextToolItem();  
    	     item.setIconStyle("icon-user-add");  
    	     toolBar.add(item);  
    	       
    	     item = new TextToolItem();  
    	     item.setIconStyle("icon-user-delete");  
    	     toolBar.add(item);  
    	       
    	     complex.setIconStyle("icon-accordion");  
    	     complex.setLayout(new AccordionLayout());  
    	   
    	     ContentPanel cp = new ContentPanel();  
    	     cp.setHeading("Online Users");  
    	     cp.setScrollMode(Scroll.AUTO);  
    	     cp.getHeader().addTool(new ToolButton("x-tool-refresh"));  
    	       
    	     complex.add(cp);  
    	   
    	     Tree tree = new Tree();  
    	     TreeItem family = new TreeItem("Family");  
    	     tree.getRootItem().add(family);  
    	     family.add(newItem("Darrell", "user"));  
    	     family.add(newItem("Maro", "user-girl"));  
    	     family.add(newItem("Lia", "user-kid"));  
    	     family.add(newItem("Alec", "user-kid"));  
    	     family.setExpanded(true);  
    	   
    	     TreeItem friends = new TreeItem("Friends");  
    	     tree.getRootItem().add(friends);  
    	     friends.add(newItem("Bob", "user"));  
    	     friends.add(newItem("Mary", "user-girl"));  
    	     friends.add(newItem("Sally", "user-girl"));  
    	     friends.add(newItem("Jack", "user"));  
    	     friends.setExpanded(true);  
    	   
    	     cp.add(tree);  
    	   
    	     cp = new ContentPanel();  
    	     cp.setHeading("Settings");  
    	     cp.addText(TestData.DUMMY_TEXT_SHORT);  
    	     complex.add(cp);  
    	   
    	     cp = new ContentPanel();  
    	     cp.setHeading("Stuff");  
    	     cp.addText(TestData.DUMMY_TEXT_SHORT);  
    	     complex.add(cp);  
    	   
    	     cp = new ContentPanel();  
    	     cp.setHeading("More Stuff");  
    	     cp.addText(TestData.DUMMY_TEXT_SHORT);  
    	     complex.add(cp);  
    	       
    	     complex.layout();  
    	     return complex;
       }

  3. #3
    Ext User
    Join Date
    Jun 2008
    Location
    Hong Kong, China
    Posts
    29
    Vote Rating
    0
    ashleywong is on a distinguished road

      0  

    Default


    I don't know anyone have reported this bug and is it relevant to the above case.

    When dragging the window, the position of window is inaccurate using FireFox.

  4. #4
    Ext User
    Join Date
    Jun 2008
    Location
    Hong Kong, China
    Posts
    29
    Vote Rating
    0
    ashleywong is on a distinguished road

      0  

    Default


    It's work fine in Safari.

  5. #5
    Sencha - GXT Dev Team darrellmeyer's Avatar
    Join Date
    May 2007
    Location
    Washington, DC
    Posts
    2,242
    Vote Rating
    2
    darrellmeyer is on a distinguished road

      0  

    Default


    There is a issues with the GWT RC1 code I believe. Incorrect values are being returned for x and y mouse position from an event in Firefox. The latest build has a workaround that works ok. I am still looking into this.

  6. #6
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    3
    gslender is on a distinguished road

      0  

    Default


    thanks darrell

  7. #7
    Ext User
    Join Date
    Jun 2008
    Location
    Hong Kong, China
    Posts
    29
    Vote Rating
    0
    ashleywong is on a distinguished road

      0  

    Default


    I've just tried beta5. The problem in FF has been resolved.

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi