FineUI 官方论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

本论坛已关闭(禁止注册、发帖和回复)
请移步 三石和他的朋友们

FineUI首页 WebForms - MVC & Core - JavaScript 常见问题 - QQ群 - 十周年征文活动

FineUI(开源版) 下载源代码 - 下载空项目 - 获取ExtJS - 文档 在线示例 - 版本更新 - 捐赠作者 - 教程

升级到 ASP.NET Core 3.1,快、快、快! 全新ASP.NET Core,比WebForms还简单! 欢迎加入【三石和他的朋友们】(基础版下载)

搜索
查看: 2083|回复: 0
打印 上一主题 下一主题

郁闷死了,VBOX布局,多了Runat="Server"竟然没有达到预期效果

[复制链接]
跳转到指定楼层
楼主
发表于 2012-12-25 07:48:21 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
  1. <x:panel ID="Panel1" BodyPadding="5px" EnableBackgroundColor="true"
  2.             ShowBorder="true" ShowHeader="False" Title="Panel" Layout="VBox"
  3.             BoxConfigAlign="Stretch" BoxConfigPosition="Start" BoxConfigPadding="5" BoxConfigChildMargin="0 0 5 0" runat="server">
  4.             <Items>
  5.                 <x:panel ID="taskPanel" runat="server" BodyPadding="5px" EnableBackgroundColor="true"
  6.                     ShowBorder="true" ShowHeader="True" Title="待办事项" EnableCollapse="True" EnableLargeHeader="False"
  7.                     Height="300" CssClass="pannal-margin">
  8.                     <Items>
  9.                         <x:contentpanel ID="ContentPanel1" runat="server" BodyPadding="5px" EnableBackgroundColor="true"
  10.                             ShowBorder="true" ShowHeader="False" Title="ContentPanel">
  11.                     <p>待办</p>
  12.                         </x:contentpanel>
  13.                     </Items>
  14.                 </x:panel>
  15.                 <x:panel ID="announcePanel" runat="server" BodyPadding="5px" EnableBackgroundColor="true"
  16.                     ShowBorder="true" ShowHeader="true" Title="公告通知" EnableCollapse="True"
  17.                     Height="300" CssClass="pannal-margin">
  18.                     <Items>
  19.                         <x:contentpanel ID="ContentPanel2" runat="server" BodyPadding="5px" EnableBackgroundColor="true"
  20.                             ShowBorder="true" ShowHeader="False" Title="ContentPanel">
  21.                      <p>公告</p>
  22.                         </x:contentpanel>
  23.                     </Items>
  24.                 </x:panel>
  25.                 <x:panel ID="newPanel" runat="server" BodyPadding="5px" EnableBackgroundColor="true"
  26.                     ShowBorder="true" ShowHeader="true" Title="新闻" EnableCollapse="True"
  27.                     Height="300" CssClass="pannal-margin">
  28.                     <Items>
  29.                         <x:contentpanel ID="ContentPanel3" runat="server" BodyPadding="5px" EnableBackgroundColor="true"
  30.                             ShowBorder="true" ShowHeader="False" Title="ContentPanel">
  31.                      <p>新闻</p>
  32.                         </x:contentpanel>
  33.                     </Items>
  34.                 </x:panel>
  35.             </Items>
  36.         </x:panel>
复制代码
可是简单删除掉Runat="Server",则布局成功,之前也发现过有一例控件,只是设置的参数位置前后不一样,竟然也无法实现其效果,如果这是Bug,那会让人抓狂!

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|FineUI 官方论坛 ( 皖ICP备2021006167号-1 )

GMT+8, 2024-9-20 06:44 , Processed in 0.042938 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表