title: View does not fit the canvas on canvas scale
body: <p>When I'm trying to scale my canvas to a draw SCALED view, my view is actually scaled, but view is getting clipped. (probably because of its layout parameters?)</p>
  
  <pre><code>public void onDraw(Canvas canvas) {
      canvas.scale(2f, 2f);
      view.draw(canvas);
  }
  </code></pre>
  
  <p>simple image:</p>
  
  <p><img src="https://i.stack.imgur.com/rK36g.png" alt="enter image description here"></p>
  
  <p>image after new onDraw called, for example when I click this button:</p>
  
  <p><img src="https://i.stack.imgur.com/jH52J.png" alt="enter image description here"></p>
  
  <p>The button should be full sized when canvas is scaled. Do you have any ideas how to solve it?</p>
  
  <p>p.s. call of</p>
  
  <pre><code>view.invalidate();
  view.requestLayout();
  </code></pre>
  
  <p>doesn't help.</p>
  
  <hr>
  
  <p>I'm using <code>MyDragShadowBuilder</code> because I want my view to be double sized when I drag the view.</p>
  
  <pre><code>private final class MyDragShadowBuilder extends DragShadowBuilder {
  
          public MyDragShadowBuilder(View view) {
              super(view);
          }
  
          @Override
          public void onDrawShadow(Canvas canvas) {
              final View view = getView();
              if (view != null) {
                  canvas.scale(2f, 2f);
                  view.draw(canvas);
              } else {
                  Log.e("DragShadowBuilder", "Asked to draw drag shadow but no view");
              }
          }
  </code></pre>
  
  <p>I add my view into my Absolute Layout implementation with WRAP_CONTENT layout properties</p>