[FireGestures] Browser Position

使用寬螢幕(1920 x 1280)時,快速切換Browser位置至左、中、右,寬度為1280,高度為screen.availHeight

FireGestures.BrowserPosition = function (x) {
    window.resizeTo(1280, screen.availHeight);
    window.screenX = x;
    window.screenY = 0;
};
FireGestures.generatePopup(event,
    [
        { label: "Left" ,oncommand: "this.BrowserPosition(0);" },
        { label: "Center" ,oncommand: "this.BrowserPosition((screen.width - 1280)/2);" },
        { label: "Right" ,oncommand: "this.BrowserPosition(screen.width-1280);" }
    ]
);

FireGestures :: Make Scripts
FireGestures :: Get Scripts -> [Popup] Resize Window