Home     Products      Support      Corporate     Sign In 
Support Knowledge Base, Article 1202
Product
XFile
Version
2.3.3 and earlier
Title
XFile Visual Control does not resize when buttons are hidden
Problem
When the Add Files, Remove Files, and Upload buttons are hidden from XFile, a blank space remains where the buttons were, and the control does not resize itself to collapse this space.
Solution

This behavior was changed in version 2.3.4 so that XFile's Visual Control will automatically resize itself and eliminate this blank space when the buttons are hidden.

If you are using a version prior to 2.3.4 and upgrading is not an option, the following workaround can be used:

Put the OBJECT tag that contains XFile's Visual Control in a DIV, and then set the STYLE properties to "crop" the right side off of the control.

For example:

<DIV style="height: 200px; width: 305px; overflow: hidden;">
<OBJECT classid="CLSID:230C3D02-DA27-11D2-8612-00A0C93EEA3C" codebase="SAXFile.cab"
id="AXFFile" style="height: 200px; width: 400px;" VIEWASTEXT>
<PARAM NAME="EnableUploadButton" VALUE="False"> 
<PARAM NAME="EnableAddButton" VALUE="False"> 
<PARAM NAME="EnableRemoveButton" VALUE="False">
</OBJECT>
</DIV>

This code sets the width of the DIV to 305 pixels and sets the overflow property to hidden to crop off the right size of the XFile Visual Control where the buttons are normally displayed.

Created : 8/8/2006 6:07:10 PM (last modified : 8/8/2006 6:07:10 PM)
Rate this article!
 
Comments