mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 21:18:48 +03:00
fix row content centering
This commit is contained in:
parent
ebb35e5cb1
commit
096f37df1f
2 changed files with 11 additions and 5 deletions
|
@ -12,6 +12,7 @@ Popup {
|
||||||
property var completer
|
property var completer
|
||||||
property bool bottomToTop: true
|
property bool bottomToTop: true
|
||||||
property bool fullWidth: false
|
property bool fullWidth: false
|
||||||
|
property bool centerRowContent: true
|
||||||
property int avatarHeight: 24
|
property int avatarHeight: 24
|
||||||
property int avatarWidth: 24
|
property int avatarWidth: 24
|
||||||
property alias count: listView.count
|
property alias count: listView.count
|
||||||
|
@ -119,7 +120,11 @@ Popup {
|
||||||
id: chooser
|
id: chooser
|
||||||
|
|
||||||
roleValue: popup.completerName
|
roleValue: popup.completerName
|
||||||
anchors.centerIn: parent
|
anchors.left: parent.left
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.right: centerRowContent ? parent : null
|
||||||
|
anchors.centerIn: centerRowContent ? parent : null
|
||||||
|
|
||||||
DelegateChoice {
|
DelegateChoice {
|
||||||
roleValue: "user"
|
roleValue: "user"
|
||||||
|
@ -127,7 +132,7 @@ Popup {
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: del
|
id: del
|
||||||
|
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: centerRowContent ? parent : null
|
||||||
|
|
||||||
Avatar {
|
Avatar {
|
||||||
height: popup.avatarHeight
|
height: popup.avatarHeight
|
||||||
|
@ -157,7 +162,7 @@ Popup {
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: del
|
id: del
|
||||||
|
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: centerRowContent ? parent : null
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
text: model.unicode
|
text: model.unicode
|
||||||
|
@ -180,7 +185,7 @@ Popup {
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: del
|
id: del
|
||||||
|
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: centerRowContent ? parent : null
|
||||||
|
|
||||||
Avatar {
|
Avatar {
|
||||||
height: popup.avatarHeight
|
height: popup.avatarHeight
|
||||||
|
@ -207,7 +212,7 @@ Popup {
|
||||||
RowLayout {
|
RowLayout {
|
||||||
id: del
|
id: del
|
||||||
|
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: centerRowContent ? parent : null
|
||||||
|
|
||||||
Avatar {
|
Avatar {
|
||||||
height: popup.avatarHeight
|
height: popup.avatarHeight
|
||||||
|
|
|
@ -55,6 +55,7 @@ Popup {
|
||||||
fullWidth: true
|
fullWidth: true
|
||||||
avatarHeight: textWidth
|
avatarHeight: textWidth
|
||||||
avatarWidth: textWidth
|
avatarWidth: textWidth
|
||||||
|
centerRowContent: false
|
||||||
|
|
||||||
closePolicy: Popup.NoAutoClose
|
closePolicy: Popup.NoAutoClose
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue