From 9dcea027f16c4ce5852da3dfc8aca284c582bd7d Mon Sep 17 00:00:00 2001
From: sola.lu <sola.lu.greentest.com.cn>
Date: 周五, 06 6月 2025 18:19:18 +0800
Subject: [PATCH] 1.注释掉custom margin,解决程序放大后,遮盖窗口底部内容的问题。

---
 examples/qml/QWKButton.qml |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/examples/qml/QWKButton.qml b/examples/qml/QWKButton.qml
index 9068242..e781d69 100644
--- a/examples/qml/QWKButton.qml
+++ b/examples/qml/QWKButton.qml
@@ -4,20 +4,26 @@
 Button {
     id: root
     width: height * 1.5
+    leftPadding: 0
+    topPadding: 0
+    rightPadding: 0
+    bottomPadding: 0
+    leftInset: 0
+    topInset: 0
+    rightInset: 0
+    bottomInset: 0
     property alias source: image.source
     contentItem: Item {
-        anchors.fill: parent
-
         Image {
             id: image
             anchors.centerIn: parent
             mipmap: true
-            width: 10
-            height: 10
+            width: 12
+            height: 12
+            fillMode: Image.PreserveAspectFit
         }
     }
     background: Rectangle {
-        anchors.fill: parent
         color: {
             if (!root.enabled) {
                 return "gray";

--
Gitblit v1.9.1