Yes. First, I create this object:
defaultDimensions: {
state: 'normal',
top: Math.round(chrome.windows.availTop),
left: Math.round(chrome.windows.availLeft),
width: Math.round(0.35 * chrome.windows.availWidth),
height: Math.round(1.0 * chrome.windows.availHeight)
},
defaultWidth = defaultDimentions.width;
Then call chrome.windows.create, passing "defaultWidth" as a part of the createData. I just apply Math.round again in the createData as below, but still complains with the same error.
So, type wise, all are defined as "number", and Math.round should take care of the issue you pointed out, right? But asain, this is working fine under the manifest v2 :-(.