Changeset 89 for gssim_ui/branches/vine


Ignore:
Timestamp:
09/16/11 12:08:50 (14 years ago)
Author:
mcichenski
Message:

fixed bug with losing visible rectangle from image area

Location:
gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/app/gssim/gssimstudio/editor
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/app/gssim/gssimstudio/editor/gssim/components/MultiImageNavigator.mxml

    r88 r89  
    118118                                visibleRectangleGroup.x = tmp.horizontalScrollPosition * (this.width - visibleRectangleGroup.width) / (matrix.a * _container.width - _container.parent.width); 
    119119                                visibleRectangleGroup.y = tmp.verticalScrollPosition * (this.height - visibleRectangleGroup.height) / (matrix.d * _container.height - _container.parent.height); 
     120                                validateRectanglePosition(); 
    120121                        } 
    121122                         
     
    132133                                rectangle.width = this.width/numberOfScreensHorizontal; 
    133134                                rectangle.height = this.height/numberOfScreensVertical; 
     135                                validateRectanglePosition(); 
     136                        } 
     137                         
     138                        public function validateRectanglePosition() : void 
     139                        { 
     140                                if (visibleRectangleGroup.x < 0) visibleRectangleGroup.x = 0; 
     141                                if (visibleRectangleGroup.y < 0) visibleRectangleGroup.y = 0; 
     142                                if (visibleRectangleGroup.x > this.width - rectangle.width) visibleRectangleGroup.x = this.width - rectangle.width; 
     143                                if (visibleRectangleGroup.y > this.height - rectangle.height) visibleRectangleGroup.y = this.height - rectangle.height; 
    134144                        } 
    135145                         
  • gssim_ui/branches/vine/gssimstudio/src/web/ui/flex/app/gssim/gssimstudio/editor/views/ExperimentEditor.mxml

    r52 r89  
    260260                                                                                        <mx:Component> 
    261261                                                                                                <mx:HBox paddingLeft="4"> 
    262                                                                                                         <!-- 
    263                                                                                                         -<mx:Button label="{resourceManager.getString('ExperimentEditor', 'View')}" toolTip="{resourceManager.getString('ExperimentEditor', 'ViewTooltip')}" click="outerDocument.viewWorkload()" height="30" paddingLeft="8"/> 
    264                                                                                                         --> 
    265262                                                                                                        <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Remove')}" toolTip="{resourceManager.getString('ExperimentEditor', 'RemoveTooltip')}" click="outerDocument.removeItem(outerDocument.workloadFilesDG)" height="30"/> 
    266263                                                                                                </mx:HBox> 
     
    285282                                                                                        <mx:Component> 
    286283                                                                                                <mx:HBox paddingLeft="4"> 
    287                                                                                                         <!-- 
    288                                                                                                         <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Load')}" toolTip="{resourceManager.getString('ExperimentEditor', 'LoadTooltip')}" click="outerDocument.loadResources()" height="30" paddingLeft="8"/> 
    289                                                                                                         --> 
    290284                                                                                                        <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Remove')}" toolTip="{resourceManager.getString('ExperimentEditor', 'RemoveTooltip')}" click="outerDocument.removeItem(outerDocument.resourceFilesDG)" height="30"/> 
    291285                                                                                                </mx:HBox> 
     
    309303                                                                                        <mx:Component> 
    310304                                                                                                <mx:HBox paddingLeft="4"> 
    311                                                                                                         <!-- 
    312                                                                                                         <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Load')}" toolTip="{resourceManager.getString('ExperimentEditor', 'LoadTooltip')}" click="outerDocument.loadTopology()" height="30" paddingLeft="8"/> 
    313                                                                                                         --> 
    314305                                                                                                        <mx:Button label="{resourceManager.getString('ExperimentEditor', 'Remove')}" toolTip="{resourceManager.getString('ExperimentEditor', 'RemoveTooltip')}" click="outerDocument.removeItem(outerDocument.topologyFilesDG)" height="30"/> 
    315306                                                                                                </mx:HBox> 
Note: See TracChangeset for help on using the changeset viewer.