messageTray: Remove hack for the lack of negative units in libcroco
libcroco now has native support for negative units. https://bugzilla.gnome.org/show_bug.cgi?id=686240
This commit is contained in:
@ -236,9 +236,7 @@ function makeCloseButton() {
|
||||
closeButton.connect('style-changed', function() {
|
||||
let themeNode = closeButton.get_theme_node();
|
||||
closeButton.translation_x = themeNode.get_length('-shell-close-overlap-x');
|
||||
|
||||
// libcroco doesn't support negative units
|
||||
closeButton.translation_y = -themeNode.get_length('-shell-close-overlap-y');
|
||||
closeButton.translation_y = themeNode.get_length('-shell-close-overlap-y');
|
||||
});
|
||||
|
||||
return closeButton;
|
||||
|
Reference in New Issue
Block a user