PDA

View Full Version : [CLOSED] [#155] FileUploadField in toolbar breaks other buttons



jchau
Feb 28, 2013, 7:54 PM
If you have a FileUploadField as a button on a toolbar, it won't let you click on the button in front of it. In example below, try to click the Close button. You can't.



<html>
<head id="Head1" runat="server">
<style type="text/css">

</style>
</head>
<body>
<form id="Form1" runat="server">
<ext:ResourceManager ID="ResourceManager1" runat="server" ScriptMode="Debug" Theme="Gray"
DisableViewState="true" />
<ext:Panel runat="server" ID="pnls" Title="Panels" Width="400" Height="500" Layout="VboxLayout">
<TopBar>
<ext:Toolbar runat="server">
<Items>
<ext:Button runat="server" ID="btnCancel" Text="Close">
</ext:Button>
<ext:FileUploadField ID="btnAdd" runat="server" ButtonOnly="true" Icon="Add" ButtonText="Add">
</ext:FileUploadField>
</Items>
</ext:Toolbar>
</TopBar>
</ext:Panel>
</form>
</body>
</html>

geoffrey.mcgill
Feb 28, 2013, 8:10 PM
I was able to reproduce the defect. We will investigate a fix.

Example


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

<!DOCTYPE html>


<html>
<head runat="server">
<title>Ext.NET Example</title>
</head>
<body>
<form runat="server">
<ext:ResourceManager runat="server" />


<ext:Panel runat="server" Title="Example" Width="400" Height="500">
<TopBar>
<ext:Toolbar runat="server">
<Items>
<ext:Button runat="server" Text="Close" />
<ext:FileUploadField runat="server" ButtonOnly="true" Icon="Add" ButtonText="Add" />
</Items>
</ext:Toolbar>
</TopBar>
</ext:Panel>
</form>
</body>
</html>

Vladimir
Feb 28, 2013, 8:22 PM
Hi,

Temp workaround is


input.x-form-file-input
{
width:100%;
margin: 0 auto;
}

It has side effects still (if click on empty space in right side of toolbar then dialog is shown, under Chrome, not IE)

I will report about that defect to Sencha

Daniil
Mar 04, 2013, 1:05 PM
Reported to Sencha.
http://www.sencha.com/forum/showthread.php?257866

Created an Issue to monitor.
https://github.com/extnet/Ext.NET/issues/155

Baidaly
May 30, 2013, 5:59 AM
Hello!

The issue appears to be fixed in the SVN trunk. Please update.

stratadev
Jul 31, 2013, 2:40 PM
Hi, this issue was fixed but the button does not appear correctly in IE7. See attachment.

Daniil
Jul 31, 2013, 4:34 PM
Could you, please, start a new forum thread?