[CLOSED] Scrollbar issue with Chrome and SetTheme

  1. #1

    [CLOSED] Scrollbar issue with Chrome and SetTheme

    Hi,

    I found a strange issue testing with Chrome (26.0.1410.64 m) and thought I should let you guys know. If you have CleanResourceUrl="false" in your ResourceManager and then set a theme in your Page_Load you will have both vertical and horizontal scrollbars on the page. The scrollbars that do appear are not active and cannot be used.

    I was able to reproduce this with the following markup:

    <%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    <!DOCTYPE html>
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            ResourceManager.SetTheme((Theme)Enum.Parse(typeof(Theme), "Default", true));
        }
    </script>
    <html>
    <head runat="server">
        <title>Index</title>
    </head>
    <body>
        <div>
            <ext:ResourceManager ID="ResourceManager" runat="server" CleanResourceUrl="false" />
            <ext:Viewport runat="server" Layout="BorderLayout">
                <Items>
                    <ext:Container Region="North" Height="110" Header="false" runat="server">
                        <Items>
                            <ext:Panel runat="server" Header="false"></ext:Panel>
                        </Items>
                    </ext:Container>
                    <ext:Panel runat="server" Region="West" />
                    <ext:Panel runat="server" Region="Center" />
                </Items>
            </ext:Viewport>
        </div>
    </body>
    </html>
    Running this code generates this:

    Click image for larger version. 

Name:	Ext2.1.1ChomeScrollbars.png 
Views:	22 
Size:	8.5 KB 
ID:	6214

    I tested in Firefox 20.1 and IE 8 and there were no issues.
    Thanks.
    Last edited by Baidaly; May 14, 2013 at 11:21 PM. Reason: [CLOSED]
  2. #2
    I don't think that CleanResourceUrl is related with issue (it defines a way to extract web resources only, via Ext.Net handler or standard ASP.NET WebResource.axd)

    SetTheme method must be used during ajax request only. Please replace SetTheme in your sample by Theme property and retest
  3. #3
    Ok, so that's an improper way to set the theme. Using the theme setting works fine. I was just letting you know in case it was an issue.

    Thanks.
  4. #4
    SetTheme is fixed in SVN
  5. #5
    Thank you.
  6. #6
    I was just letting you know in case it was an issue.
    Thanks for the report, yes, it was our issue also (SetTheme was generating incorrect script)
  7. #7
    Just curious: is there a workaround I can use for my current version (2.1.1)?

    Thanks again.
  8. #8
    If you need call SetTheme method then you can use
    public void SetTheme(Theme theme)
            {
                string themeName = theme == Ext.Net.Theme.Default ? "classic" : theme.ToString().ToLowerInvariant();
                X.Js.AddScript("Ext.net.ResourceMgr.setTheme(\"{0}\", \"{1}\");", ResourceManager.GetInstance().GetThemeUrl(theme), themeName);
            }
  9. #9
    Great, thank you.

Similar Threads

  1. [CLOSED] Portlet scrollbar issue
    By webppl in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 10, 2012, 2:57 AM
  2. [CLOSED] popup scrollbar issue
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Oct 18, 2011, 10:09 AM
  3. [CLOSED] Issue setting cleanResourceUrl="true"
    By asztern in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 01, 2010, 12:56 PM
  4. [CLOSED] Gridview scrollbar issue
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Aug 08, 2010, 5:22 PM
  5. [CLOSED] Scrollbar Issue
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Feb 05, 2010, 2:53 AM

Tags for this Thread

Posting Permissions