fix(@desktop): Hotfix Popup's margins

This is a combination of 2 commits.

fix(@desktop): Hotfix Popup's margins

chore: bump statusq
This commit is contained in:
MishkaRogachev 2022-06-27 20:41:28 +03:00 committed by Iuri Matias
parent ce51a29119
commit 3271aff7c7
3 changed files with 3 additions and 4 deletions

@ -1 +1 @@
Subproject commit 64d6beb4a0fa56f8507e16143878344e8f23c8a3 Subproject commit a2e9f813a5440e3cedb178da9ca2929a4cda5002

View File

@ -85,6 +85,7 @@ Flickable {
id: pickColorComponent id: pickColorComponent
StatusStackModal { StatusStackModal {
anchors.centerIn: parent
replaceItem: CommunityColorPanel { replaceItem: CommunityColorPanel {
Component.onCompleted: color = colorPicker.color Component.onCompleted: color = colorPicker.color
onAccepted: { onAccepted: {
@ -106,6 +107,7 @@ Flickable {
id: pickTagsComponent id: pickTagsComponent
StatusStackModal { StatusStackModal {
anchors.centerIn: parent
replaceItem: CommunityTagsPanel { replaceItem: CommunityTagsPanel {
Component.onCompleted: { Component.onCompleted: {
tags = tagsPicker.tags; tags = tagsPicker.tags;

View File

@ -39,9 +39,6 @@ QtObject {
function openPopup(popupComponent, params = {}) { function openPopup(popupComponent, params = {}) {
const popup = popupComponent.createObject(root.appMain, params); const popup = popupComponent.createObject(root.appMain, params);
popup.x = Qt.binding(function() { return (root.appMain.width - popup.width) / 2; });
popup.y = popup.margins;
popup.height = Qt.binding(function() { return root.appMain.height - popup.margins * 2; });
popup.open(); popup.open();
return popup; return popup;
} }