mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-01-19 00:13:01 +08:00
fixed cm control page width and not resizable
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
94763e9fe0
commit
9f1d4e8ba6
@ -182,19 +182,14 @@ class ConnectionManagerState extends State<ConnectionManager> {
|
||||
.dividerColor))),
|
||||
child: ChatPage()),
|
||||
),
|
||||
flex: (kConnectionManagerWindowSizeOpenChat.width -
|
||||
kConnectionManagerWindowSizeClosedChat
|
||||
.width)
|
||||
.toInt(),
|
||||
)
|
||||
: Offstage(),
|
||||
),
|
||||
Expanded(
|
||||
child: pageView,
|
||||
flex: kConnectionManagerWindowSizeClosedChat.width
|
||||
.toInt() -
|
||||
4 // prevent stretch of the page view when chat is open,
|
||||
),
|
||||
SizedBox(
|
||||
width: kConnectionManagerWindowSizeClosedChat.width -
|
||||
10, // 10 is from overflow
|
||||
child: pageView,
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
|
@ -225,6 +225,7 @@ void runConnectionManagerScreen(bool hide) async {
|
||||
} else {
|
||||
await showCmWindow(isStartup: true);
|
||||
}
|
||||
windowManager.setResizable(false);
|
||||
// Start the uni links handler and redirect links to Native, not for Flutter.
|
||||
listenUniLinks(handleByFlutter: false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user