mirror of https://github.com/status-im/StatusQ.git
fix(StatusMenuSeparator): ensure height is 0 when invisible or disabled
Closes #212
This commit is contained in:
parent
f7f217ed22
commit
fd7a5530cf
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue