mirror of
https://github.com/elementary/gala.git
synced 2024-12-18 23:02:14 +03:00
WindowSwitcher: Update caption width before opening (#1645)
This commit is contained in:
parent
7c379480d3
commit
4d1fcace10
@ -291,6 +291,9 @@ namespace Gala {
|
||||
canvas.set_size ((int) nat_width, switcher_height);
|
||||
canvas.invalidate ();
|
||||
|
||||
// container width might have changed, so we must update caption width too
|
||||
update_caption_text ();
|
||||
|
||||
set_position (
|
||||
(int) (geom.x + (geom.width - width) / 2),
|
||||
(int) (geom.y + (geom.height - height) / 2)
|
||||
|
Loading…
Reference in New Issue
Block a user