diff --git a/__tests__/src/components/WorkspaceElasticWindow.test.js b/__tests__/src/components/WorkspaceElasticWindow.test.js
index 4023e16ec45903b94ce2913b10d987b66bccf907..eda0e2bc76e6866fea5c74fd039b8ee07c8e924e 100644
--- a/__tests__/src/components/WorkspaceElasticWindow.test.js
+++ b/__tests__/src/components/WorkspaceElasticWindow.test.js
@@ -88,8 +88,8 @@ describe('WorkspaceElasticWindow', () => {
         .props()
         .onResize('myevent', 'direction', {
           style: {
-            height: 200,
-            width: 400,
+            height: '200px',
+            width: '400px',
           },
         }, {}, { x: 0, y: 0 });
       expect(mockOnResize).toHaveBeenCalledWith('1', {
diff --git a/src/components/WorkspaceElasticWindow.js b/src/components/WorkspaceElasticWindow.js
index 0ae63d8a7053109fc84876aeadbe4c814d755570..afe006ebc8ca7642f15c95194e39d24b12244e78 100644
--- a/src/components/WorkspaceElasticWindow.js
+++ b/src/components/WorkspaceElasticWindow.js
@@ -42,8 +42,8 @@ class WorkspaceElasticWindow extends React.Component {
         }}
         onResize={(e, direction, ref, delta, position) => {
           updateElasticWindowLayout(layout.windowId, {
-            height: ref.style.height - companionWindowDimensions.height,
-            width: ref.style.width - companionWindowDimensions.width,
+            height: Number.parseInt(ref.style.height, 10) - companionWindowDimensions.height,
+            width: Number.parseInt(ref.style.width, 10) - companionWindowDimensions.width,
             x: position.x - offsetX,
             y: position.y - offsetY,
           });