[CLOSED] Problem to use property "Maximized" from "Window"

  1. #1

    [CLOSED] Problem to use property "Maximized" from "Window"

    Hi,

    I'm trying to show a window maximized in desktop component, using the property "Maximized" from "<ext:Window>", however when I set the property "Maximazed=true" and click to open the window, some strange behavior occurs.

    I already see some threads talking about it, however none of them helped me fix it.

    Here is my example:

    Test.aspx
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="CidadeDaConfeccao.Test" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
        
    <html>
    <head id="Head1" runat="server">
        <title>Test</title>    
    </head>
    <body>
        <form id="Form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server" />
    
        <ext:Desktop ID="Desktop1" runat="server">            
            <Modules>
                        
                <ext:DesktopModule ModuleID="notepad">
                    <Shortcut Name="Bloco de notas" IconCls="x-notepad-shortcut"  SortIndex="3" TextCls="x-shortcut-text"/>                       
                    <Launcher Text="Bloco de notas" Icon="ApplicationForm" />
                    <Window>
                        <ext:Window ID="Window2" runat="server"
                            Title="Notepad"
                            Width="600"
                            Height="400"
                            Icon="ApplicationForm"
                            AnimCollapse="false"
                            Border="false"
                            HideMode="Offsets"
                            Layout="FitLayout"
                            CloseAction="Destroy"
                            Maximized="true">
                            <Items>
                                <ext:HtmlEditor ID="HtmlEditor1" runat="server" Text="Some <b>rich</b> <font color='red'>text</font> goes <u>here</u><br>Give it a try!">
                                </ext:HtmlEditor>
                            </Items>
                        </ext:Window>
                    </Window>
                </ext:DesktopModule>
            </Modules>
    
            <StartMenu Title="Menu iniciar" IconPath="Application" Height="300"/>
            
        </ext:Desktop>
        </form>
    </body>
    </html>
    Thanks for your attention.
    Last edited by Daniil; Jan 18, 2013 at 2:34 PM. Reason: [CLOSED]
  2. #2
    Hi @avante,

    Thank you for the report.

    To fix it right now please put this script into the <head> of the page.

    Fix
    Ext.ux.desktop.Desktop.override({
        onShortcutItemClick: function (dataView, record) {
            var me = this, module = me.app.getModule(record.data.module),
                win;
    
            if(module && record.data.handler && Ext.isFunction(record.data.handler)){
                record.data.handler.call(this, module);
            }
            else{
                win = module && module.createWindow();
                if (win && !win.maximized) { // added && !win.maximized
                    me.restoreWindow(win);
                }
            }
        }
    });
    We are investigating a permanent fix to put into SVN.
    Last edited by Daniil; Jan 17, 2013 at 9:50 AM.
  3. #3
    It has been fixed in SVN (trunk, v2.2).

    Thank you again for the report!
  4. #4

    Worked

    Thank you Daniil.

Similar Threads

  1. Replies: 1
    Last Post: Oct 05, 2012, 11:56 AM
  2. Replies: 1
    Last Post: Jun 26, 2012, 11:29 AM
  3. Replies: 5
    Last Post: May 02, 2012, 5:37 PM
  4. [CLOSED] SelectBox: Problem with characters "<" and ">"
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Nov 03, 2011, 6:43 AM
  5. Replies: 4
    Last Post: Oct 11, 2011, 2:42 AM

Tags for this Thread

Posting Permissions