Skip to content

Commit bcd5e49

Browse files
committed
Merge pull request nwjs#2475 from chaseWillden/master
Fixed bug nwjs#2307
2 parents 9b1c323 + 6d4254d commit bcd5e49

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/api/window/window.cc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,12 @@ void Window::Call(const std::string& method,
223223
shell_->window()->SetKiosk(!shell_->window()->IsKiosk());
224224
} else if (method == "CloseDevTools") {
225225
shell_->CloseDevTools();
226-
}else if (method == "ResizeTo") {
226+
} else if (method == "SetPosition") {
227+
std::string position;
228+
if (arguments.GetString(0, &position)){
229+
shell_->window()->SetPosition(position);
230+
}
231+
} else if (method == "ResizeTo") {
227232
int width, height;
228233
if (arguments.GetInteger(0, &width) &&
229234
arguments.GetInteger(1, &height))

0 commit comments

Comments
 (0)