Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Third party plugin widget resize problem #2472

Closed
SeptemberHX opened this issue May 22, 2020 · 5 comments
Closed

Third party plugin widget resize problem #2472

SeptemberHX opened this issue May 22, 2020 · 5 comments
Assignees

Comments

@SeptemberHX
Copy link

image

The plugin widget in the RED RECT consists of two QLabel with QVBoxLayout, and the parent widget is a QWidget. The dark rectangle around each QLabel is the border.

It looks everything works fine. But strange things happen when I open a new application(A new icon will be added to the app area, and all the widgets on the dock seem be resized)

image

The height of the plugin widget is really strange. Drag the widget and move it to other place will make it look normal again:

image

@SeptemberHX
Copy link
Author

It confused me that the datetime plugin works normal even I tried to implement the plugin like the datetime way before I realize that the datatime plugin is treated specially in the code:

image

@SeptemberHX
Copy link
Author

image

It works fine now by removing - 20 in the rect are.

I'm not sure whether it is designed to - 20 for every plugins...

@0yanghongwei
Copy link

@SeptemberHX Hello, can you provide a copy of your plug-in source code? Or directly provide a copy of the plug-in, I use to test it.

@SeptemberHX
Copy link
Author

插件机制在 22 May 2020 是不是改过?我之前的插件只能在 panel 上跑,dock 上跑不了了。

不过你可以看这个:https://blog.csdn.net/qq_33154343/article/details/110672252 任务栏 1.2.2 的缺陷 中的 第二点,和我去年提的问题是一样的。

@BLumia BLumia transferred this issue from linuxdeepin/dde-dock Mar 22, 2022
@justforlxz justforlxz self-assigned this Mar 29, 2022
@justforlxz
Copy link
Member

linuxdeepin/dde-dock@9188fff 已经修复以上问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants