有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

Flex应用程序中浏览器缩放的java问题

我们的Flex应用程序有问题。它有Flex UI组件和后端java组件。 当浏览器缩放到100%以上时,应用程序将完全冻结(没有组件,甚至滚动条也没有响应)

我是Flex新手,任何解决这个问题的建议都会非常有用

----更新

实际上,我发现在UIComponent上调用invalidateProperties函数时会出现问题。至于我们的一个定制组件。 如果我对这个电话发表评论,一切正常。知道吗? -------更新2

setDataList方法调用invalidateProperties,从而触发commitProperties。问题发生在第一线

          vboxContainer.addChild(checkBox); 

在commitProperties函数中

下面是setDataList和commitProperties的代码

    public function set dataList(value:ArrayCollection):void{
            //_dataList = value;
            _dataList = ObjectUtil.copy(value) as ArrayCollection;
            dataListChanged = true;
            invalidateProperties();
        }

    override protected function commitProperties():void{
            super.commitProperties();
            if(dataListChanged){
                vboxContainer.removeAllChildren();
                for each(var itemLabel:VO in _dataList){
                    var checkBox:MultilineCheckBox = new MultilineCheckBox();
                    checkBox.label = itemLabel.principleName;
                    checkBox.selected = itemLabel.checked;
                    /*checkBox.setStyle("paddingBottom",0);
                    checkBox.setStyle("paddingTop",0);
                    checkBox.setStyle("verticalGap",0);
                    checkBox.setStyle("fontSize",10); */
                    //checkBox.setStyle("height",10);   
                    //checkBox.setStyle("width",700); 
                    checkBox.width = 850;
                    checkBox.addEventListener(MouseEvent.CLICK, updateSelectedValues);
                    vboxContainer.addChild(checkBox);
                }
                dataListChanged = false;
            }
        }

共 (0) 个答案