<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">While Drawer is closed, it should be possible to change it's anchor side.</p>

<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Changing anchor side doesn't recalculate <code class="notranslate">MuiPaper-root</code>'s  <code class="notranslate">transform: translateX</code> coordinates correctly thus making it appear in the visible part of the screen.</p>

<h2 dir="auto">Steps to Reproduce (for bugs)</h2>

<p dir="auto"><a href="https://codesandbox.io/s/zw5w01nnrp" rel="nofollow">https://codesandbox.io/s/zw5w01nnrp</a></p>
<ol dir="auto">
<li>Click 'Toggle' to check it opens from the left.</li>
<li>Click it again to close the Drawer</li>
<li>Click 'Change Anchor' to make it to the right</li>
<li>Observe the Drawer</li>
<li>Click 'Toggle' again - Drawer will recalculate to correct opened position.</li>
</ol>
<h2 dir="auto">Context</h2>
    
<p dir="auto">Drawer with some basic settings, applied until it's used.</p>
<h2 dir="auto">Your Environment</h2>

<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>^1.0.0-beta.20</td>
</tr>
<tr>
<td>React</td>
<td>^16.0.0</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome Version 61.0.3163.100</td>
</tr>
</tbody>
</table>
<p dir="auto">The <code class="notranslate">&lt;Grid container&gt;</code> extends beyond its parent, with half of spacing size.<br>
I have marked the extra width in red, also setting spacing to zero fixes the problem.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3260363/28355346-338983fc-6c81-11e7-9f67-fb33c7758283.png"><img src="https://user-images.githubusercontent.com/3260363/28355346-338983fc-6c81-11e7-9f67-fb33c7758283.png" alt="mobile-padding" style="max-width: 100%;"></a></p>
<p dir="auto">Here is a working example: <a href="https://codesandbox.io/s/Y8nzGm5W" rel="nofollow">https://codesandbox.io/s/Y8nzGm5W</a>.<br>
Similar code with a zero spacing works as expected: <a href="https://codesandbox.io/s/NxvYxvQpL" rel="nofollow">https://codesandbox.io/s/NxvYxvQpL</a>.</p>