mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
animation: Set size through CSS
Pretty much the same case of the previous commit: we want this size to be scale-dependant, and using the width and height properties of ClutterActor doesn't automatically update. Use CSS to set the width and height. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1176
This commit is contained in:
parent
b27c89f836
commit
53a24e6ddd
1 changed files with 1 additions and 2 deletions
|
|
@ -15,8 +15,7 @@ class Animation extends St.Bin {
|
|||
const themeContext = St.ThemeContext.get_for_stage(global.stage);
|
||||
|
||||
super._init({
|
||||
width: width * themeContext.scale_factor,
|
||||
height: height * themeContext.scale_factor,
|
||||
style: `width: ${width}px; height: ${height}px;`,
|
||||
});
|
||||
|
||||
this.connect('destroy', this._onDestroy.bind(this));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue