1 parent
870ad6c2b3
commit
5fae129ec0
3 files changed
+81
-14
No files matched your search
+4
-2
@@ -1759,7 +1759,7 @@ int fitSettingsColumns(WindowLayout &layout, size_t first, size_t end, int width
|
||||
}
|
||||
int fitLanSettings(HWND panel, int width);
|
||||
int fitSyncSettings(HWND panel, int width);
|
||||
int fitDriveSettings(HWND panel, int width);
|
||||
int fitDriveSettings(HWND panel, int width, int height);
|
||||
void reflowSettingsPage(HWND pane, WindowLayout &layout, int width, int height)
|
||||
{
|
||||
const auto &v = *reinterpret_cast<SettingsView *>(GetWindowLongPtrW(GetParent(pane), GWLP_USERDATA));
|
||||
@@ -1771,8 +1771,10 @@ void reflowSettingsPage(HWND pane, WindowLayout &layout, int width, int height)
|
||||
if (v.selectedPage == ManageComputersPage || v.selectedPage == OpenBaoPage || v.selectedPage == GoogleDrivePage)
|
||||
{
|
||||
const int panelWidth = std::max(1, available - 16);
|
||||
const int panelAreaHeight = std::max(1, height * 96 / static_cast<int>(dpi) - 15);
|
||||
const int panelHeight = v.selectedPage == ManageComputersPage ? fitLanSettings(v.lan, panelWidth) :
|
||||
v.selectedPage == OpenBaoPage ? fitSyncSettings(v.sync, panelWidth) : fitDriveSettings(v.drive, panelWidth);
|
||||
v.selectedPage == OpenBaoPage ? fitSyncSettings(v.sync, panelWidth) :
|
||||
fitDriveSettings(v.drive, panelWidth, panelAreaHeight);
|
||||
layout.controls[page.first].second = {8, 7, 8 + panelWidth, 7 + panelHeight};
|
||||
layout.height = panelHeight + 15;
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user