<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    First of all column should NOT have own height. It calculated
    automatically based on it's childrens heights.<br>
    Second is you should use Flickable outside Column to automatically
    position items on actions.<br>
    <br>
    <div class="moz-cite-prefix">24.02.2016 15:44, mariusz sapinski
      пишет:<br>
    </div>
    <blockquote
cite="mid:CAOGc_QpHg0NkNUn898Q=W+zwNQfPJufJagJ+Ua3wO832UxOOjQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>
          <div>
            <div>Hi,<br>
              <br>
            </div>
               I have two ComboBoxes in one Column. Code looks a bit
            like that:<br>
            <br>
            import QtQuick 2.0<br>
            import Sailfish.Silica 1.0<br>
            <br>
            Dialog {<br>
            <br>
                id: setupDialog;<br>
                allowedOrientations: Orientation.Portrait;<br>
            <br>
                property bool tmpUseMinute: useMinute;<br>
                property bool tmpUseKwadrans: useKwadrans;<br>
                property bool tmpUsePol: usePol;<br>
                property bool tmpUseCala: useCala;<br>
            <br>
            <br>
                Column {<br>
                     id: column;<br>
            <br>
                     height: parent.height; // - (Theme.paddingMedium);<br>
                     anchors.leftMargin: Theme.paddingLarge;<br>
                     anchors.rightMargin: Theme.paddingLarge;<br>
                     width: setupDialog.width;<br>
                     spacing: Theme.paddingLarge;<br>
            <br>
                     PageHeader {<br>
                         title: qsTr("Settings")<br>
                     }<br>
            <br>
                     ComboBox {<br>
                         currentIndex: 1<br>
                         id: combo1<br>
                         label: "interval"<br>
                         width: setupDialog.width<br>
                         menu: ContextMenu {<br>
                             MenuItem {<br>
                                 text: "1 minute (for test)"<br>
                                 onClicked: {<br>
                                     useMinute = true;<br>
                                     useKwadrans = false;<br>
                                     usePol = false;<br>
                                     useCala = false;<br>
                                 }<br>
                             }<br>
                             MenuItem {<br>
                                 text: "15 minutes"<br>
                                 onClicked: {<br>
                                     useMinute=false;<br>
                                     useKwadrans = true;<br>
                                     usePol = false;<br>
                                     useCala = false;<br>
                                 }<br>
                             }<br>
                         } // end of first combo box: interval<br>
            <br>
                          ComboBox {<br>
                             currentIndex: 3<br>
                             id: combo2<br>
                             label: "duration"<br>
                             width: setupDialog.width<br>
                             menu: ContextMenu {<br>
                                 MenuItem {<br>
                                     text: "20 minutes"<br>
                                     onClicked: {<br>
                                         useTwenty = true;<br>
                                         useThirty = false;<br>
                                         useFortyFive = false;<br>
                                     }<br>
                                 }<br>
            <br>
                                 MenuItem {<br>
                                     text: "30 minutes"<br>
                                     onClicked: {<br>
                                         useTwenty=false;<br>
                                         useThirty = true;<br>
                                         useFortyFive = false;<br>
                                     }<br>
                                 }<br>
            <br>
                             } // endof ContextMenu<br>
                            } // end of second combo box: duration<br>
            <br>
            <br>
                } // end of Column<br>
            <br>
            }<br>
            }<br>
            <br>
            <br>
          </div>
          my unfortunately both boxes overlap on the screen. What am I
          missing? I thought Column should take care that the elements
          inside are correctly positioned.<br>
          <br>
        </div>
        Cheers, Mariusz<br>
        <div>
          <div><br>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to <a class="moz-txt-link-abbreviated" href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a></pre>
    </blockquote>
    <br>
  </body>
</html>