notifs: fix shrink height
Fix height when osd/session blocks
This commit is contained in:
parent
c3e8127422
commit
8b61a02145
1 changed files with 2 additions and 2 deletions
|
|
@ -28,13 +28,13 @@ Item {
|
||||||
|
|
||||||
if (visibilities && panel) {
|
if (visibilities && panel) {
|
||||||
if (visibilities.osd) {
|
if (visibilities.osd) {
|
||||||
const h = panel.osd.y - Config.border.rounding * 2;
|
const h = panel.osd.y - Config.border.rounding * 2 - padding * 2;
|
||||||
if (height > h)
|
if (height > h)
|
||||||
height = h;
|
height = h;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (visibilities.session) {
|
if (visibilities.session) {
|
||||||
const h = panel.session.y - Config.border.rounding * 2;
|
const h = panel.session.y - Config.border.rounding * 2 - padding * 2;
|
||||||
if (height > h)
|
if (height > h)
|
||||||
height = h;
|
height = h;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue