V1.0 Desktop Issue

  1. #1

    V1.0 Desktop Issue

    Hi

    Started playing with V1.0. The desktop works fine until you select All -> Create Dynamic.

    That is when it duplicates the window in the start bar. When you close it the one stays at the bottom and no matter what you do it stays there.



    In my app I'm playing with, this causes other problems in the window been called up. Like buttons do not work when you click on it, but works when you set focus and press enter. Multiselect boxes give ext.fly error when you click on them.

    If I call the same window without using the createDynamicWindow on the desktop the screen works fine.

    I have tested your online example at https://examples1.ext.net/#/Desktop/...tion/Overview/ and it does exactly the same thing

    thanks
    richardt



    box
  2. #2

    RE: V1.0 Desktop Issue

    Hi,

    That is when it duplicates the window in the start bar. When you close it the one stays at the bottom and no matter what you do it stays there.
    Fixed. The fix will be include in the final release


    In my app I'm playing with, this causes other problems in the window been called up. Like buttons do not work when you click on it, but works when you set focus and press enter. Multiselect boxes give ext.fly error when you click on them.

    Can you provide more details how to reproduce those issues? What buttons did you mean?


    Thanks for the bug reporting
  3. #3

    RE: V1.0 Desktop Issue

    Hi Vladimir

    Sorry the other problem was my own. Inherited the desktop.aspx from a different base page and that caused the other errors.

    Sorry
    Richardt
  4. #4

    RE: V1.0 Desktop Issue

    Hi

    Using the following code causes an error. If I take the w.maximize out the error stops.

    
    
    
    
    function createDynamicWindowChild(urls, descr, ids) {
    
    
    var desk = MyDesktop.getDesktop();
    
    
    var windows = desk.getManager().getBy(function() { return true; });
    
    
    var i = 0;
    
    
    for (i = 0; i <= windows.length - 1; i++) {
    
    
    if (windows[i].id == ids) {
    
    
    windows[i].show();
    
    
    return
    
    
    }
    
    
    }
    
    
    Ext.net.DirectMethods.reset();
    
    
    
    
    
    var w = desk.createWindow({
    
    
    id: ids,
    
    
    title: descr,
    
    
    maximizable: true,
    
    
    minimizable: true,
    
    
    pageX: 10,
    
    
    pageY: 10,
    
    
    autoscroll: false,
    
    
    InitCenter: "false", 
    
    
    autoLoad: {
    
    
    url: urls,
    
    
    maskMsg: "Loading...",
    
    
    mode: "iframe",
    
    
    showMask: true,
    
    
    CenterOnLoad: "false"
    
    
     
    
    
    }
    
    
    });
    
    
    w.maximize()
    
    
    w.show();
    
    
    }

    Here is where it produces the error in coolite's code. it stops at


    target = ct.getLayoutTarget(); in the code below




    
    
    
    
    layout : function(){
    
    
    var ct = this.container, target = ct.getLayoutTarget();
    
    
    if(!(this.hasLayout || Ext.isEmpty(this.targetCls))){
    
    
    target.addClass(this.targetCls);
    
    
    }
    
    
    this.onLayout(ct, target);
    
    
    ct.fireEvent('afterlayout', ct, this);
    
    
    },
    Thanks
    Richardt
  5. #5

    RE: V1.0 Desktop Issue

    Hi,

    1. What is the reset method?
    Ext.net.DirectMethods.reset();

    Remove it


    2. You cannot maximize until showing. Therefore call maximize after showing (it is better in the callback)


    show( [<code style="font-style: normal; font-weight: normal; font-family: 'Lucida Console', 'Courier New', Courier, monospace; font-size: 12px; ">String/Element animateTarget</code>], [<code style="font-style: normal; font-weight: normal; font-family: 'Lucida Console', 'Courier New', Courier, monospace; font-size: 12px; ">Function callback</code>], [<code style="font-style: normal; font-weight: normal; font-family: 'Lucida Console', 'Courier New', Courier, monospace; font-size: 12px; ">Object scope</code>] ) : Ext.Window<div class="mdesc" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 5px; padding-right: 0px; padding-bottom: 5px; padding-left: 0px; color: rgb(68, 68, 68); "><div class="long" style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; display: block; line-height: 18px; ">Shows the window, rendering it first if necessary, or activates it and brings it to front if hidden.<div class="mdetail-params" style="margin-top: 10px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 12px; font-size: 12px; "><strong style="font-style: normal; font-weight: bold; display: block; margin-bottom: 3px; font-size: 11px; color: rgb(85, 85, 85); ">Parameters:[/b]<ul style="margin-top: 12px; margin-right: 12px; margin-bottom: 12px; margin-left: 12px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; list-style-type: circle; list-style-position: inside; list-style-image: initial; "><li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; list-style-position: inside; list-style-type: circle; list-style-image: initial; "><code style="font-style: normal; font-weight: normal; font-family: 'Lucida Console', 'Courier New', Courier, monospace; font-size: 12px; ">animateTarget</code> : String/Element<div class="sub-desc" style="margin-top: 5px; margin-right: 5px; margin-bottom: 5px; margin-left: 16px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">(optional) The target element or id from which the window should animate while opening (defaults to null with no animation)
    <li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; list-style-position: inside; list-style-type: circle; list-style-image: initial; "><code style="font-style: normal; font-weight: normal; font-family: 'Lucida Console', 'Courier New', Courier, monospace; font-size: 12px; ">callback</code> : Function<div class="sub-desc" style="margin-top: 5px; margin-right: 5px; margin-bottom: 5px; margin-left: 16px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">(optional) A callback function to call after the window is displayed
    <li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; list-style-position: inside; list-style-type: circle; list-style-image: initial; "><code style="font-style: normal; font-weight: normal; font-family: 'Lucida Console', 'Courier New', Courier, monospace; font-size: 12px; ">scope</code> : Object<div class="sub-desc" style="margin-top: 5px; margin-right: 5px; margin-bottom: 5px; margin-left: 16px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">(optional) The scope (<code style="font-style: normal; font-weight: normal; font-family: 'Lucida Console', 'Courier New', Courier, monospace; font-size: 12px; ">this</code> reference) in which the callback is executed. Defaults to this window.[/list]<strong style="font-style: normal; font-weight: bold; display: block; margin-bottom: 3px; font-size: 11px; color: rgb(85, 85, 85); ">Returns:[/b]<ul style="margin-top: 12px; margin-right: 12px; margin-bottom: 12px; margin-left: 12px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; list-style-type: circle; list-style-position: inside; list-style-image: initial; "><li style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; list-style-position: inside; list-style-type: circle; list-style-image: initial; "><code style="font-style: normal; font-weight: normal; font-family: 'Lucida Console', 'Courier New', Courier, monospace; font-size: 12px; ">Ext.Window</code><div class="sub-desc" style="margin-top: 5px; margin-right: 5px; margin-bottom: 5px; margin-left: 16px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">this
    <div class="sub-desc" style="margin-top: 5px; margin-right: 5px; margin-bottom: 5px; margin-left: 16px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">

    <div class="sub-desc" style="margin-top: 5px; margin-right: 5px; margin-bottom: 5px; margin-left: 16px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">

    <div class="sub-desc" style="margin-top: 5px; margin-right: 5px; margin-bottom: 5px; margin-left: 16px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">Or pass 'maximized: true' to the config object[/list]



  6. #6

    RE: V1.0 Desktop Issue



    Thanks Vladimir it worked.

    I just copied my code from V0.8.2 which did not give a problem doing it that way.

Similar Threads

  1. Desktop Background issue
    By xMAC in forum 1.x Help
    Replies: 4
    Last Post: Sep 14, 2011, 12:17 AM
  2. [CLOSED] Layout issue with iframe window in desktop
    By Labyrinth in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 01, 2010, 2:58 PM
  3. [CLOSED] Issue with Tree Grid and Desktop task bar
    By ducnt in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Oct 29, 2010, 9:07 AM
  4. [CLOSED] [1.0] Desktop start menu styles issue
    By Labyrinth in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: May 27, 2010, 9:27 AM
  5. [CLOSED] Desktop Issue
    By jskibo in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 23, 2009, 1:22 AM

Posting Permissions