mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-05-23 22:18:40 +03:00
Fix collapsed toolbar drag preview sizing
This commit is contained in:
@@ -346,8 +346,11 @@ class _RemoteToolbarState extends State<RemoteToolbar> {
|
|||||||
);
|
);
|
||||||
return Align(
|
return Align(
|
||||||
alignment: FractionalOffset(_fractionX.value, 0),
|
alignment: FractionalOffset(_fractionX.value, 0),
|
||||||
child: Offstage(
|
child: Visibility(
|
||||||
offstage: _dragging.isTrue,
|
visible: _dragging.isFalse,
|
||||||
|
maintainSize: true,
|
||||||
|
maintainAnimation: true,
|
||||||
|
maintainState: true,
|
||||||
child: Material(
|
child: Material(
|
||||||
elevation: _ToolbarTheme.elevation,
|
elevation: _ToolbarTheme.elevation,
|
||||||
shadowColor: MyTheme.color(context).shadow,
|
shadowColor: MyTheme.color(context).shadow,
|
||||||
|
|||||||
Reference in New Issue
Block a user