Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

6
LINES

< > BotCompany Repo | #1026325 // javascript_setWindowBounds

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2275L/14K).

sS javascript_setWindowBounds(Rect r) {
  ret r == null ? "" : 
    "window.moveTo(0, 0); " +
    "window.resizeTo(\*r.w*/, \*r.h*/); " +
    "window.moveTo(\*r.x*/, \*r.y*/);";
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026325
Snippet name: javascript_setWindowBounds
Eternal ID of this version: #1026325/3
Text MD5: 68d065c0fe9569a57eedeeaa4e3858f1
Transpilation MD5: 7c98da7f76771d9aacfeaf2a42043179
Author: stefan
Category: javax / platform
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-12-21 13:30:07
Source code size: 184 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 179 / 250
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)