filipf added a comment.

  In D20972#465912 <https://phabricator.kde.org/D20972#465912>, @davidedmundson 
wrote:
  
  > > When anchors.margins is removed we see that the ToolButton still has 1px 
of its own margin around it
  >
  > From what? Should they be there?
  
  
  I believe it's inherent to the control. If I test with:
  
    import QtQuick 2.12
    import QtQuick.Controls 2.12 as QQC2
    
    Rectangle {
        id: recty
        width: 150
        height: 100
        color: "black"
    
        Rectangle {
            id: tangly
            anchors.centerIn: recty
            width: 100
            height: 50
            color: "white"
        }
    
        QQC2.ToolButton {
            anchors.left: tangly.left
            anchors.top: tangly.top
            icon.name: "application-menu"
        }
    }
  
  I see that there are 1px margins to the left and to the top of the tool 
button.
  
  F6841574: image.png <https://phabricator.kde.org/F6841574>

REPOSITORY
  R124 System Settings

REVISION DETAIL
  https://phabricator.kde.org/D20972

To: filipf, #vdg, ngraham, davidedmundson
Cc: abetts, davidedmundson, plasma-devel, jraleigh, GB_2, ragreen, Pitel, 
ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, sebas, apol, mart

Reply via email to