Skip to content

Commit 0df121f

Browse files
authored
PopupResizeHandler: return correct popup size bugfix (#12804)
Ensure correct resize values are returned even if resizing starts and stops without mouse movement.
1 parent c779217 commit 0df121f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

js/ui/applet.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,8 +1068,8 @@ var PopupResizeHandler = class PopupResizeHandler {
10681068
let [stageX, stageY] = event.get_coords();
10691069
this._drag_start_position = {x: stageX, y: stageY};
10701070
this._drag_start_size = {width: this.actor.width, height: this.actor.height};
1071-
this._init_user_width = this._get_user_width();
1072-
this._init_user_height = this._get_user_height();
1071+
this._init_user_width = this._new_user_width = this._get_user_width();
1072+
this._init_user_height = this._new_user_height = this._get_user_height();
10731073

10741074
return true;
10751075
}

0 commit comments

Comments
 (0)