mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-11-07 06:39:10 +08:00
[fix] resolve cross-platform build warnings
This commit is contained in:
@@ -601,6 +601,9 @@ export component FileBrowserWindow inherits Window {
|
||||
SurfaceSeparator { x: 0px; y: 0px; width: parent.width; }
|
||||
focus := FocusScope {
|
||||
focus-on-click: true;
|
||||
// Window sizing is defined above. Keep its layout constraints separate
|
||||
// from children whose dimensions adapt to the current window size.
|
||||
x: 0px; y: 0px; width: root.width; height: root.height;
|
||||
key-pressed(event) => {
|
||||
if event.text == Key.Escape { root.cancel-drag(); return accept; }
|
||||
reject
|
||||
|
||||
@@ -141,7 +141,6 @@ export component TrustedDevicesDialog inherits Rectangle {
|
||||
// Extend into the right margin to preserve the existing card width.
|
||||
width: parent.width - 56px + dialog.scrollbar-gutter;
|
||||
height: parent.height - 84px;
|
||||
min-width: 0px; min-height: 0px;
|
||||
horizontal-scrollbar-policy: always-off;
|
||||
vertical-scrollbar-policy: as-needed;
|
||||
viewport-width: self.visible-width;
|
||||
|
||||
Reference in New Issue
Block a user