Button ext:按钮不显示,即使渲染为true

Button ext:按钮不显示,即使渲染为true,button,ext.net,Button,Ext.net,所以我得到了一些非常简单的标记,其中包含工具栏中的一个按钮 现在的问题是,即使按钮“正确”写入DOM,它也不会显示。 有关详细信息,请参见此屏幕截图: 有人能解释一下为什么设置固定的高度/宽度/位置不会使按钮向前移动,并且包含的标记元素都有width=0px或高度=0px 下面是一个示例: <body> <ext:ResourceManager ID="RM" runat="server" /> <ext:Viewport Layout="BorderLayout

所以我得到了一些非常简单的标记,其中包含工具栏中的一个按钮

现在的问题是,即使按钮“正确”写入DOM,它也不会显示。
有关详细信息,请参见此屏幕截图:

有人能解释一下为什么设置固定的高度/宽度/位置不会使按钮向前移动,并且包含的标记元素都有
width=0px或<代码>高度=0px

下面是一个示例:

<body>
<ext:ResourceManager ID="RM" runat="server" />
<ext:Viewport Layout="BorderLayout" runat="server" ID="InnerView" OverflowY="Scroll">
    <Content>
        <ext:Button ID="adminswap" runat="server" Text="Admin-Ansicht umschalten" Hidden="false"
            AllowDepress="true" MinHeight="16" ToFrontOnShow="true" Visible="true" Icon="ArrowSwitchBluegreen">
            <%-- This Guy doesn't show up--%>
        </ext:Button>
        <ext:Panel runat="server" ID="order" Border="false" OverflowY="Scroll">
            <LayoutConfig> 
                <ext:TableLayoutConfig Columns="3" />
            </LayoutConfig>
            <Items>
                <ext:Panel runat="server" Layout="ColumnLayout" RowSpan="2" Border="false">
                    <Content>
                       <p> And here is some Grid-panel, which is of no further interest</p>
                    </Content>
                </ext:Panel>
                <ext:Panel ColSpan="2" runat="server" ID="Panel_Instructions" Title="Türöffnung per Telefon"
                    Width="740" Padding="10" Border="true" AutoHeight="true">
                    <Content>
                        <br />
                        <p>
                            Some Multiline text containing instructions<br>
                            this also is of no further interest and just for the sake of the sample<br><br> lorem Ipsum dolor sit amet and stuff...
                        </p>
                    </Content>
                </ext:Panel>
                <ext:Panel runat="server" Width="350" AutoHeight="false" Height="200"
                    StripeRows="true" TrackMouseOver="true" Border="true">
                    <Content>
                       <p>Some Content Grid-Panel</p>
                    </Content>
                </ext:Panel>
                <ext:Panel runat="server" ID="Standort_Details" Title="Adresse" Width="370" Padding="10"
                    AutoHeight="false" Height="200" Border="true">
                    <Items>
                        <ext:DisplayField ID="Details_field1" runat="server" FieldLabel="street"
                            Name="" />
                        <ext:DisplayField ID="Details_field2" runat="server" FieldLabel="postal code" Name="" />
                        <ext:DisplayField ID="Details_field3" runat="server" FieldLabel="city" Name="" />
                        <ext:DisplayField ID="Details_field4" runat="server" FieldLabel="phone" Name="" />
                    </Items>
                </ext:Panel>
                <ext:Panel ID="Panel_5" Border="true" Height="460" StyleSpec="vertical-align:top;" ColSpan="3" runat="server">
                    <Content>
                        <p> some content control grid-panel</p>
                    </Content>
                </ext:Panel>
            </Items>
        </ext:Panel>
      </Content>
  </ext:Viewport>
</body>


边界布局适用于区域。您不指定任何区域。要使按钮可见,只需删除视口的Layout=“BorderLayout”


这是。

您能提供复制的样本吗?您的样本无法运行。它需要一些更改才能运行。尽管做了这些改变,但对我来说并没有重现问题。我看到按钮了。这里我唯一能建议的是替换为。@Danielveriga我尝试让它现在可以运行,所以我只是C&P+匿名化了正文中的代码,也用项目替换了内容,但没有效果