fix(StatusMenuSeparator): ensure height is 0 when invisible or disabled

Closes #212
This commit is contained in:
Pascal Precht 2021-06-30 12:35:54 +02:00 committed by Pascal Precht
parent f7f217ed22
commit fd7a5530cf
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import QtQuick.Controls 2.13
import StatusQ.Core.Theme 0.1 import StatusQ.Core.Theme 0.1
MenuSeparator { MenuSeparator {
height: visible && enabled ? implicitHeight : 0
contentItem: Rectangle { contentItem: Rectangle {
implicitWidth: 176 implicitWidth: 176
implicitHeight: 1 implicitHeight: 1