Flex 2.0.1 DataGrid 不能正常滚动的问题

Flex 2.0.1 中使用Datagrid动态添加列后,动态添加的列看不到,及时用鼠标拖动滚动条,也还是无法看到新添加的列。而把当前的Datagrid的列宽度调整之后,便能看到新添加的列了。开始觉得很奇怪,用了很多办法,也在网上查了好多资料,什么invalidDisplayList之类的,用了之后还是不能使滚动条正常工作,折腾了半天,还是在一个英文网站上找到了原因,原来是Flex的既存Bug,要下载一个补丁才行,于是下载了【Flex 2.0.1 Hotfix 1】,解压缩,覆盖之后,运行,本以为万事大吉了,谁知,不好用,没办法,再折腾一下,在Adobe的网站上发现,还有个【Flex 2.0.1 Hotfix 2】,于是,如法炮制,解压,覆盖一番,运行,OK终于可以使横向滚动条正常的工作了。 下面把下载后的Zip文件的覆盖方法贴出来。 一、 1. Make a copy of your current Flex SDK 2.0.1 installation and name it 'FlexSDK-154929'. 2. Download the hotfix build ZIP file. 3. Extract the ZIP file to the location where the SDK should be installed. 二、 Install SDK hot fix 1 1. Make a copy of the 'Flex SDK 2' folder located in your Flex Builder installation folder (typically C:/Program Files/Adobe/Flex Builder 2/ or C:/Program Files/Adobe/Flex Builder 2 Plug-in/) and name it 'FlexSDK--155577'. 2. Download the hotfix ZIP file. 3. Unzip it to the 'Flex SDK 2' directory. 4. On the 'Confirm File Overwrite' dialog, click 'Yes To All'. 三、 This hot fix contains a new fdb.jar that fixes the bug. To install this JAR, follow these instructions: 1. Follow the installation instructions above to install SDK hot fix 1. 2. Exit Flex Builder. 3. In the 'Flex SDK 2' directory, navigate to /lib/fdb.jar. 4. Make a copy of the new fdb.jar. 5. Navigate to the directory: /Applications/Adobe Flex Builder 2/plugins/com.adobe.flexbuilder.flex_2.0.155577/lib/ (the default location for fdb.jar). If you're running Flex Builder Plug-In, then this folder will be in your Eclipse plugins folder. 6. Paste the fdb.jar to the directory listed in step 5. 7. When asked whether to replace the existing file, say yes. 四、 To update FDS with SDK hotfix: 1. Back up: Please create a back up of FDS install and the deployed instance of FDS that will be updated. 2. Unzip the flex2sdk_hotfix.zip to a temporary folder. 3. Update the SDK shipped with FDS: Copy {flex_hotfix}/frameworks to {fds2_install}/flex_sdk_2/frameworks Copy {flex_hotfix}/lib to {fds2_install}/flex_sdk_2/lib 4. Update every deployed FDS application: Copy {flex_hotfix}/lib/*.* to {fds2_deployed_application}/WEB-INF/flex/jars Copy {flex_hotfix}/frameworks/libs to {fds2_deployed_application}/WEB-INF/flex/libs Copy {flex_hotfix}/frameworks/locale to {fds2_deployed_application}/WEB-INF/flex/locale Copy {flex_hotfix}/frameworks/themes to {fds2_deployed_application}/WEB-INF/flex/themes 5. Update FDS resources: Copy {flex_hotfix}/resources/html-templates to {fds2_install}/resources/html-templates 注:覆盖之前,一定要把原来的做好备份。
  • 0
    点赞
  • 0
    评论
  • 0
    收藏
  • 一键三连
    一键三连
  • 扫一扫,分享海报

©️2021 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值