mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
deepin.dde-shell: fix error with qt 6.8
This commit is contained in:
parent
b802be4127
commit
8fbaa1df72
@ -33,6 +33,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
patches = [
|
||||
./fix-path-for-nixos.diff
|
||||
./fix-dock-can-not-show-with-qt6_8.diff
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
|
@ -0,0 +1,20 @@
|
||||
diff --git a/panels/dock/OverflowContainer.qml b/panels/dock/OverflowContainer.qml
|
||||
index 74ca966..312f2a0 100644
|
||||
--- a/panels/dock/OverflowContainer.qml
|
||||
+++ b/panels/dock/OverflowContainer.qml
|
||||
@@ -52,13 +52,13 @@ Item {
|
||||
for (let child of listView.contentItem.visibleChildren) {
|
||||
width = calculateImplicitWidth(width, child.implicitWidth)
|
||||
}
|
||||
- return width
|
||||
+ return Math.max(width, 1)
|
||||
}
|
||||
implicitHeight: {
|
||||
let height = 0
|
||||
for (let child of listView.contentItem.visibleChildren) {
|
||||
height = calculateImplicitHeight(height, child.implicitHeight)
|
||||
}
|
||||
- return height
|
||||
+ return Math.max(height, 1)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user