title: How to make rectangle height fill ScrollView
body: <p>I have the following QML code: </p>
  
  <pre><code>import QtQuick 2.4
  import QtQuick.Controls 1.3
  import QtQuick.Window 2.2
  
  Window {
      id: win
      width: 1024
      height: 768
      visible: true
  
      ScrollView {
          id:scrollView
          anchors.fill: parent
          Rectangle{
              id:rect
              z:5
              color:"red"
              width: 2048
              height: win.height
              border{
                  color: "black"
                  width: 2
              }
          }
      }
  }
  </code></pre>
  
  <p>In this code the larger <code>Rectangle</code> makes the horizontal scrollbar correctly appear. However, since the scrollbar takes some height from the window, the vertical scrollbar appears too.</p>
  
  <p>How can I make the <code>Rectangle</code> fill only available space in my <code>ScrollView</code> so that vertical scrollbar won't show up? Using something like <code>win.height - &lt;someNumber&gt;</code> is <em>not acceptable</em>. Adding <code>verticalScrollBarPolicy: Qt.ScrollBarAlwaysOff</code> is also <em>not acceptable</em> cause it hides some content on bottom of <code>rect</code>.</p>