PDA

View Full Version : [CLOSED] HTML editor in borderlayout does not work after expand



Fergus
May 07, 2014, 5:20 PM
Hi,
If i have a htmleditor in a borderlayout region.

When you collapse the West region in the example and then expand again. HTML editor no longer works.
Will not take focus.




<%@ Page Language="C#" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>

<!DOCTYPE html>

<html>
<head runat="server">
<title>Simple BorderLayout in Markup - Ext.NET Examples</title>
<link href="/resources/css/examples.css" rel="stylesheet" />
</head>
<body>
<ext:ResourceManager runat="server" />

<h1>Simple BorderLayout in Markup</h1>

<ext:Button
ID="Button1"
runat="server"
Text="Show Window"
Icon="Application">
<Listeners>
<Click Handler="#{Window1}.show();" />
</Listeners>
</ext:Button>

<ext:Window
ID="Window1"
runat="server"
Title="Simple Layout"
Icon="Application"
Width="700"
Height="350"
Border="false"
Collapsible="true"
Plain="true"
Layout="BorderLayout">
<Items>
<ext:Panel
runat="server"
Region="West"
Collapsible="true"
MinWidth="175"
Split="true"
Width="500"
Title="Navigation">
<Items>
<ext:HtmlEditor ID="TFContent" runat="server" HideLabel="true"
EnableKeyEvents="true" EmptyText="Task Notes" EnableSourceEdit="false">

</ext:HtmlEditor>
</Items>
</ext:Panel>
<ext:TabPanel
runat="server"
Region="Center"
ActiveTabIndex="0">
<Items>
<ext:Panel
ID="Tab1"
runat="server"
Title="First Tab"
BodyPadding="6"
Html="First Tab"
/>
<ext:Panel
ID="Tab2"
runat="server"
Title="Another Tab"
BodyPadding="6"
Html="Another Tab"
/>
<ext:Panel
ID="Tab3"
runat="server"
Title="Closeable Tab"
Closable="true"
BodyPadding="6"
Html="Closable Tab"
/>
</Items>
</ext:TabPanel>
</Items>
</ext:Window>
</body>
</html>

Daniil
May 08, 2014, 6:56 AM
Hi @Fergus,

I am afraid we cannot help.
http://www.sencha.com/forum/showthread.php?148975

Fergus
May 08, 2014, 12:27 PM
Ok.
Thanks anyway

Daniil
May 08, 2014, 12:49 PM
Though, you can turn off animation for the Panel:

AnimCollapse="false"