Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-shell-notification-center
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
ximper-shell-notification-center
Commits
54a4c5d0
Unverified
Commit
54a4c5d0
authored
Mar 08, 2024
by
Erik Reider
Committed by
GitHub
Mar 08, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bottom aligned notifications being clipped in CC (#398)
parent
ee046a02
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
fadedViewport.vala
src/fadedViewport/fadedViewport.vala
+10
-5
No files found.
src/fadedViewport/fadedViewport.vala
View file @
54a4c5d0
...
@@ -74,7 +74,8 @@ private class FadedViewportChild : Gtk.Container {
...
@@ -74,7 +74,8 @@ private class FadedViewportChild : Gtk.Container {
base
.
set_can_focus
(
true
);
base
.
set_can_focus
(
true
);
base
.
set_redraw_on_allocate
(
false
);
base
.
set_redraw_on_allocate
(
false
);
this
.
y_padding
=
(
int
)
(
y_padding
*
0.5
);
// Half due to the fade basically stopping at 50% of the height
this
.
y_padding
=
y_padding
/
2
;
this
.
_child
=
null
;
this
.
_child
=
null
;
this
.
show
();
this
.
show
();
...
@@ -116,10 +117,15 @@ private class FadedViewportChild : Gtk.Container {
...
@@ -116,10 +117,15 @@ private class FadedViewportChild : Gtk.Container {
uint
border_width
=
this
.
get_border_width
();
uint
border_width
=
this
.
get_border_width
();
if
(
this
.
_child
!=
null
&&
this
.
_child
.
get_visible
())
{
if
(
this
.
_child
!=
null
&&
this
.
_child
.
get_visible
())
{
child_allocation
.
x
=
allocation
.
x
+
(
int
)
border_width
;
child_allocation
.
x
=
allocation
.
x
+
(
int
)
border_width
;
child_allocation
.
y
=
allocation
.
y
+
y_padding
+
(
int
)
border_width
;
child_allocation
.
y
=
allocation
.
y
+
(
int
)
border_width
;
Gtk
.
Align
align_y
=
_child
.
get_valign
();
if
(
align_y
==
Gtk
.
Align
.
END
)
{
child_allocation
.
y
-=
y_padding
;
}
else
{
child_allocation
.
y
+=
y_padding
;
}
child_allocation
.
width
=
allocation
.
width
-
2
*
(
int
)
border_width
;
child_allocation
.
width
=
allocation
.
width
-
2
*
(
int
)
border_width
;
child_allocation
.
height
=
allocation
.
height
+
y_padding
*
2
child_allocation
.
height
=
allocation
.
height
-
2
*
(
int
)
border_width
;
-
2
*
(
int
)
border_width
;
this
.
_child
.
size_allocate
(
child_allocation
);
this
.
_child
.
size_allocate
(
child_allocation
);
if
(
this
.
get_realized
())
{
if
(
this
.
get_realized
())
{
this
.
_child
.
show
();
this
.
_child
.
show
();
...
@@ -147,7 +153,6 @@ private class FadedViewportChild : Gtk.Container {
...
@@ -147,7 +153,6 @@ private class FadedViewportChild : Gtk.Container {
minimum_height
+=
y_padding
*
2
;
minimum_height
+=
y_padding
*
2
;
natural_height
+=
y_padding
*
2
;
natural_height
+=
y_padding
*
2
;
}
}
}
}
public
override
bool
draw
(
Cairo
.
Context
cr
)
{
public
override
bool
draw
(
Cairo
.
Context
cr
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment