[CLOSED] HTMLEditor and scrollbars

  1. #1

    [CLOSED] HTMLEditor and scrollbars

    Hm.... I tried to use HTMLEditor but it seems to have some problem with scrollbars (as attached) scrollbar is in the middle of element.

    Click image for larger version. 

Name:	htmleditor.png 
Views:	99 
Size:	7.9 KB 
ID:	2344

    here is the code

            Window formWindow = new Ext.Net.Window
            {
                ID = "formWindow",
                Width = 900,
                Height = 600,
                AutoShow = true,
                AutoScroll = true,
                Layout = "VBox",
                Modal = true,
                ButtonAlign = Alignment.Center,
                CloseAction = CloseAction.Close,
                LayoutConfig = {
                        new VBoxLayoutConfig {
                            Align = VBoxAlign.Stretch
                        }
                    },
                Items = {
                        new Ext.Net.Panel {
                            Frame = true,
                            Height = 300,
                            Layout = "vbox",
                            AutoScroll = true,
                            LayoutConfig = {
                                new VBoxLayoutConfig {
                                    Align = VBoxAlign.Stretch,
                                    DefaultMargins = "1 0 1 0"
                                }
                            },
                                new NumberField {
                                    ReadOnly = true,
                                    DataIndex = "totalRealHours**",
                                    FieldLabel = Labels.GetLabel("@SYS1151")
                                },
                                new HtmlEditor {
                                    Width = 600,
                                    ReadOnly = true,
                                    DataIndex = "Description",
                                    FieldLabel = Labels.GetLabel("@SYS104939")
                                }
                            }
                        },
                        new Ext.Net.GridPanel
                        {
                            StoreID = xplTaskTrackerHistoryStore.ClientID,
                            Flex = 1,
                            ColumnModel =
                            {
                                Columns = {
                                    new Column { ColumnID = "networkAlias", Header = Labels.GetLabel("@SYS25815"), DataIndex = "networkAlias", Editable = false},
                                    new Column { ColumnID = "Description", Header = Labels.GetLabel("@SYS81179"), DataIndex = "Description", Width = 300, Editable = false}
                                }
                            }
                        }
                    }
            };
    Last edited by Daniil; Feb 28, 2011 at 1:17 PM. Reason: [CLOSED]
  2. #2
    Hi,

    HtmlEditor with FieldLabel is not in 'form' layout.

    Please avoid to use FieldLabel for fields when it's out of 'form' layout, it's required of ExtJS, see
    http://dev.sencha.com/deploy/dev/docs/?class=Ext.Component&member=fieldLabel

    You could wrap HtmlEditor in <ext:Container> to fix.

    Example
    <ext:Container runat="server" Layout="form">
        <Items>
            <ext:HtmlEditor runat="server" FieldLabel="HtmlEditor" />
        </Items>
    </ext:Container>
  3. #3
    hm... but now it stop scrolling at all.


    my fault, please mark as resolved.
  4. #4
    Please provide a sample how you try.
  5. #5
    my fault, please mark as resolved.

Similar Threads

  1. [CLOSED] HtmlEditor Mask with Scrollbars?
    By peter.campbell in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jan 16, 2012, 2:50 PM
  2. [CLOSED] AutoHeight gridpanel and scrollbars
    By 78fede78 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 22, 2010, 5:06 PM
  3. [CLOSED] How do I fix these scrollbars?
    By jmcantrell in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 22, 2010, 1:48 PM
  4. [CLOSED] GridPanel vertical scrollbars
    By state in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Sep 14, 2009, 7:07 PM
  5. [CLOSED] GridPanel scrollbars
    By danielg in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: May 21, 2009, 1:01 AM

Posting Permissions