Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-31269

Item.layer: true inside Column triggers bad positioning

XMLWordPrintable

    • 865b4ec84a7c09565c0946d0498274bc71f9e7d0

      In examples/quick/scenegraph/simplematerial example if add layer.enabled: true; Column moves down on 1/3 of screen:

              SimpleMaterialItem {
                  layer.enabled: true;
                  width: parent.width;
                  height: parent.height / 3;
                  color: "white"
              }

      But if change Column anchor with FIXED size it becomes OK:

          Column {
      //        anchors.fill: parent
              width: 300;
              height: 300;
              x:0; y: 0;
      

      If set parent-based size, everything bed again:

          Column {
      //        anchors.fill: parent
              width: parent.width;
              height: parent.height;
              x:0; y: 0;
      

      P.S. Not sure that this is bug, but looks strange.

        1. ubuntu-14.04.png
          2 kB
          Mitch Curtis
        2. windows-7-qt5.3.0.png
          18 kB
          Mitch Curtis
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            tower120 Diduh Andrey
            Votes:
            3 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes