Skip to content

Commit dda5047

Browse files
committed
nw2: use innerHeight and Width for Window.resizeTo
1 parent 9e24f43 commit dda5047

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resources/api_nw_newwin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ NWWindow.prototype.setMinimumSize = function (width, height) {
450450
chrome.windows.update(this.cWindow.id, {'minWidth': width, 'minHeight': height});
451451
};
452452
NWWindow.prototype.resizeTo = function (width, height) {
453-
chrome.windows.update(this.cWindow.id, {'width': width, 'height': height});
453+
chrome.windows.update(this.cWindow.id, {'innerWidth': width, 'innerHeight': height});
454454
};
455455
NWWindow.prototype.resizeBy = function (width, height) {
456456
this.cWindow = currentNWWindowInternal.getCurrent(this.cWindow.id, {'populate': true});

0 commit comments

Comments
 (0)