Changeset 15728

Show
Ignore:
Timestamp:
07/13/08 13:07:31 (5 years ago)
Author:
kan
Message:

ウインドウの位置を記憶するようにした

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • platform/air/wasaco/src/wasaco.mxml

    r15725 r15728  
    7878                         
    7979                        this.ControlArea.addEventListener( MouseEvent.MOUSE_DOWN, applicationDragHandler ); 
     80                        this.ControlArea.addEventListener( MouseEvent.MOUSE_UP, savePosition ); 
    8081                        this.minimizeBtn.addEventListener( MouseEvent.MOUSE_UP, onMinimize ); 
    8182                        this.closeBtn.addEventListener( MouseEvent.MOUSE_UP, onClose ); 
     
    9697                                        alphaBottom: 1.0, 
    9798                                        windowWidth: 400, 
    98                                         windowHeight: 500 
     99                                        windowHeight: 500, 
     100                                        windowX: 100, 
     101                                        windowY: 100 
    99102                                }; 
    100103                                settings.forEach(function(conf:*, idx:Number, arr:Array):void { 
     
    105108                                stage.nativeWindow.width = setting_map.windowWidth; 
    106109                                stage.nativeWindow.height = setting_map.windowHeight; 
     110                                stage.nativeWindow.x = setting_map.windowX; 
     111                                stage.nativeWindow.y = setting_map.windowY; 
    107112                        }); 
    108113                        showLoginWindow(); 
    109114                } 
    110  
     115                 
    111116                private function feedLinkHook(event:Event):void { 
    112117                        var links:Object = feedCanvas.htmlLoader.window.document.links; 
     
    317322                        saveSetting("windowHeight", stage.nativeWindow.height); 
    318323                } 
     324 
     325                private function savePosition(event:MouseEvent):void { 
     326                        saveSetting("windowX", stage.nativeWindow.x); 
     327                        saveSetting("windowY", stage.nativeWindow.y); 
     328                } 
     329 
    319330        ]]> 
    320331        </mx:Script>