mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-11-27 23:19:02 +08:00
Merge pull request #4920 from 21pages/fix_cm
fixed cm control page width
This commit is contained in:
commit
84d7115e36
@ -183,19 +183,14 @@ class ConnectionManagerState extends State<ConnectionManager> {
|
|||||||
.dividerColor))),
|
.dividerColor))),
|
||||||
child: ChatPage()),
|
child: ChatPage()),
|
||||||
),
|
),
|
||||||
flex: (kConnectionManagerWindowSizeOpenChat.width -
|
|
||||||
kConnectionManagerWindowSizeClosedChat
|
|
||||||
.width)
|
|
||||||
.toInt(),
|
|
||||||
)
|
)
|
||||||
: Offstage(),
|
: Offstage(),
|
||||||
),
|
),
|
||||||
Expanded(
|
SizedBox(
|
||||||
child: pageView,
|
width: kConnectionManagerWindowSizeClosedChat.width -
|
||||||
flex: kConnectionManagerWindowSizeClosedChat.width
|
10, // 10 is from overflow
|
||||||
.toInt() -
|
child: pageView,
|
||||||
4 // prevent stretch of the page view when chat is open,
|
)
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -225,6 +225,7 @@ void runConnectionManagerScreen(bool hide) async {
|
|||||||
} else {
|
} else {
|
||||||
await showCmWindow(isStartup: true);
|
await showCmWindow(isStartup: true);
|
||||||
}
|
}
|
||||||
|
windowManager.setResizable(false);
|
||||||
// Start the uni links handler and redirect links to Native, not for Flutter.
|
// Start the uni links handler and redirect links to Native, not for Flutter.
|
||||||
listenUniLinks(handleByFlutter: false);
|
listenUniLinks(handleByFlutter: false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user