PDA

View Full Version : [CLOSED] A minor flaw on panel putting on region "West"



cleve
Jun 08, 2012, 1:36 AM
Here's the example I wanna show you:




<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<List<string>>" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<link href="/themes/shared.css" type="text/css" rel="stylesheet" />
<link href="/themes/icons.css" type="text/css" rel="stylesheet" />
</head>
<body id="theBody">
<ext:ResourceManager ID="theManager" runat="server"
IDMode="Inherit"
Theme="Default"
EnableViewState="false"
DisableViewState="true"
ShowWarningOnAjaxFailure="false" ScriptMode="Debug" />
<ext:Viewport runat="server" Layout="BorderLayout">
<Items>
<ext:Panel runat="server" ID="cW" Width="180" Collapsible="true" HideCollapseTool="true"
Region="West" MinWidth="140" MaxWidth="180" Split="true" Margins="2 1 2 2"
Layout="VBoxLayout" AnimCollapse="false">
<LayoutConfig>
<ext:VBoxLayoutConfig Align="Stretch" />
</LayoutConfig>
</ext:Panel>
<ext:Container runat="server" Region="Center" />
</Items>
</ext:Viewport>
<script language="javascript" type="text/javascript">
var testFunc = function () {
}
</script>
<form runat="server" id="theForm" />
</body>
</html>
<script runat="server">
protected override void OnInit(EventArgs e)
{
}
</script>



Try alter " HideCollapseTool='false' " with " HideCollapseTool='true' ". Supposingly the overall title area is blank now, and it should be hidden then. But it didn't. Am I right to suppose any blank title parts should be hidden?

Daniil
Jun 08, 2012, 8:34 AM
Hi,

A header is not hidden automatically.

Please set up

Header="false"
for the Panel.