[CLOSED] How to increase the icon selection width

  1. #1

    [CLOSED] How to increase the icon selection width

    I have a strange problem, after I was able to configure the desktop with icons , I need two things, how to disable icon selection and how to increase the icon selection trace ( color) that comes default with ext.net

    Picture attached
    Click image for larger version. 

Name:	screenshot6.png 
Views:	103 
Size:	59.6 KB 
ID:	5057Click image for larger version. 

Name:	screenshot7.png 
Views:	85 
Size:	30.7 KB 
ID:	5058

    Desktop.cshtml
    @{
        ViewBag.Title = "Desktop";
    }
     
    <script>
        function HideComponent(control) {
        
        for(var i = 0 ; i < control.taskbar.items.length;i++) {
           if(i < control.taskbar.items.length -1)
            control.taskbar.items.get(i).hide();
            
        }
            
        }
    </script>
    @(Html.X().Desktop()
        .ID("compdesktop")
        .Listeners(l => l.Ready.Handler = "HideComponent(this.desktop);")
        
        .DesktopConfig(
        (@Html.X().DesktopConfig()
             .DDShortcut(false)
            .AlignToGrid(true)
            .Wallpaper("resources/wallpapers/desk.jpg")
            .Show()
        
        )
             
        )
    
          .Modules(m => m.Add(
                        (@Html.X().DesktopModule()
                        .ModuleID("Module1")
    
                        .Shortcut(
                        (@Html.X().DesktopShortcut()
                        .Name("Application Configuration")
                            .IconCls("x-app-shortcut")
                                .TextCls("x-long-label")
                        .SortIndex(1)
                        .X("100")
                        .Y("100")
    
                        ))))
                    )
               .Modules(m => m.Add(
                            (@Html.X().DesktopModule()
                            .ModuleID("Module2")
                           
                            
                            
                            )
                            .Shortcut(
                            (@Html.X().DesktopShortcut()
                             
                            .IconCls("right-arrow ")
    
                            .SortIndex(1)
                            .X("250")
                            .Y("100")
                            
                            ))))
    
              .Modules(m => m.Add(
                            (@Html.X().DesktopModule()
                            .ModuleID("Module1")
    
                            .Shortcut(
                            (@Html.X().DesktopShortcut()
                            .Name("Cycle Configuration")
                            .IconCls("x-cycle-shortcut")
                            .TextCls("x-long-label")
                            .QTip("Cycle configuration options.")
                            .SortIndex(1)
                            .X("350")
                            .Y("100")
    
                            ))))
                        )
        )
    desktop.css
     .x-app-shortcut
    {
        border: thin solid #FFFFFF;
        background-image: url(app_config.png);
        background-position: center;
        height: 150px;
        width: 150px;
        background-color: #C0C0C0;
        background-repeat: no-repeat;
        background-attachment: inherit;
        table-layout: auto;
        vertical-align: top;
        text-align: center;
        white-space: nowrap;
        word-spacing: normal;
        letter-spacing: normal;
        text-indent: inherit;
        line-height: normal;
        display: block;
        float: none;
        visibility: visible;
       
        overflow: auto;
    } 
     .x-cycle-shortcut
    {
        border: thin solid #FFFFFF;
        background-image: url(cycle_config.png);
        background-position: center;
        height: 150px;
        width: 150px;
        background-color: #C0C0C0;
        background-repeat: no-repeat;
        background-attachment: inherit;
        table-layout: auto;
        vertical-align: top;
        text-align: center;
        white-space: nowrap;
        word-spacing: normal;
        letter-spacing: normal;
        text-indent: inherit;
        line-height: normal;
        display: block;
        float: none;
        visibility: visible;
       
        overflow: auto;
         
    } 
    .right-arrow 
    {
          background-image: url(right-arrow.png) !important;
           background-repeat: no-repeat;
           background-position: center;
                
           height: 150px;
        width:150px;
    }
    .x-bold-text .x-btn-inner{
        font-weight: bold !important;
    }
    
    .x-long-label{
        height:auto !important;
        width:150px !important;
        font-size:14px;
    }
    Attached Thumbnails Click image for larger version. 

Name:	screenshot6.png 
Views:	104 
Size:	41.1 KB 
ID:	5056  
    Last edited by Daniil; Nov 19, 2012 at 9:14 AM. Reason: [CLOSED]
  2. #2
    Hello!

    You should override styles for shortcuts. It doesn't the best solution but while I'm looking for more appropriate solution for your problem, please use following styles:

    .x-item-selected div.ux-desktop-shortcut-bg {
    	width: 170px !important;
    }
    
    .x-view-over .ux-desktop-shortcut-bg {
    	width: 170px !important;
    }
    Just substitute 170px with required size.
    Last edited by Baidaly; Nov 13, 2012 at 8:02 PM.
  3. #3
    Hi,

    An icon is not an item of DataView which renders shortcuts. So, it needs to manage size of the items following down the hierarchy.

    This rule helps.
    div.ux-desktop-shortcut-wrap {
        height: 150px !important;
        width: 150px !important;
    }
    So, there is no a good possibility to set up it for some specified shortcut.

    You can try what @Baidaly suggested. But I am not sure it will work well in all cases.

Similar Threads

  1. How to Increase width of the confimration Box
    By praveencat123 in forum 1.x Help
    Replies: 0
    Last Post: Sep 04, 2012, 6:12 AM
  2. How we can increase the Row height of Listview
    By NishaLijo in forum 1.x Help
    Replies: 1
    Last Post: Mar 23, 2012, 1:14 PM
  3. Replies: 7
    Last Post: Nov 04, 2010, 9:15 PM
  4. Increase timeout session
    By Kamal in forum 1.x Help
    Replies: 0
    Last Post: Jul 15, 2009, 1:29 PM
  5. ComboBox - Item Selection Width
    By Tbaseflug in forum 1.x Help
    Replies: 4
    Last Post: Dec 27, 2008, 6:06 AM

Posting Permissions