pashminakazi commented on issue #646:
URL: https://github.com/apache/royale-asjs/issues/646#issuecomment-650030985


   TreeViewCheckBoxRenderer extends TreeItemRenderer
   
   Code for TreeViewCheckBoxRenderer's updateDisplayList : 
   
   ```
   override protected function updateDisplayList(unscaledWidth:Number, 
unscaledHeight:Number):void {
                        super.updateDisplayList(unscaledWidth, unscaledHeight);
                if(super.data){
                            if (super.icon != null){
                                    myCheckBox.x = super.icon.x;
                                    myCheckBox.y = 2;
                                    super.icon.x = myCheckBox.x + 
myCheckBox.width + 17;
                                    super.label.x = super.icon.x + 
super.icon.width + 3;
                                        myCheckBox.setStyle("borderColor", 
0x666666);
                                }
                                else{
                                    myCheckBox.x = super.label.x;
                                    myCheckBox.y = 2;
                                    super.label.x = myCheckBox.x + 
myCheckBox.width + 17;
                                        myCheckBox.setStyle("borderColor", 
0x666666);
                                }
                            if (data.@state == STATE_SCHRODINGER){
                                        myCheckBox.setStyle("borderColor", 
0xFF4545);
                            }
                            else{
                                        myCheckBox.setStyle("borderColor", 
0x666666);
                            }
                        }
            }
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to