From 1bded36339a5f6d95ae6dbc4736c8cb59eb8dbe6 Mon Sep 17 00:00:00 2001 From: elasota Date: Wed, 4 Nov 2020 17:05:24 -0500 Subject: [PATCH] Reduce size of file browser UI even more when using OSK to fix obscuring on newer Android --- ApplicationResourcePatches/DITL/2007.json | 10 +++++----- PortabilityLayer/FileBrowserUI.cpp | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ApplicationResourcePatches/DITL/2007.json b/ApplicationResourcePatches/DITL/2007.json index 533ab3f..4335646 100644 --- a/ApplicationResourcePatches/DITL/2007.json +++ b/ApplicationResourcePatches/DITL/2007.json @@ -4,7 +4,7 @@ { "name" : "Okay", "itemType" : "Button", - "pos" : [ 376, 208 ], + "pos" : [ 376, 176 ], "size" : [ 58, 20 ], "id" : 1, "enabled" : true @@ -12,7 +12,7 @@ { "name" : "Cancel", "itemType" : "Button", - "pos" : [ 302, 208 ], + "pos" : [ 302, 176 ], "size" : [ 58, 20 ], "id" : 2, "enabled" : true @@ -21,7 +21,7 @@ "name" : "", "itemType" : "CustomControl", "pos" : [ 17, 33 ], - "size" : [ 401, 154 ], + "size" : [ 401, 122 ], "id" : 2, "enabled" : true }, @@ -29,14 +29,14 @@ "name" : "", "itemType" : "CustomControl", "pos" : [ 418, 32 ], - "size" : [ 16, 156 ], + "size" : [ 16, 124 ], "id" : 3, "enabled" : true }, { "name" : "", "itemType" : "EditBox", - "pos" : [ 16, 208 ], + "pos" : [ 16, 176 ], "size" : [ 270, 16 ], "id" : 4, "enabled" : true diff --git a/PortabilityLayer/FileBrowserUI.cpp b/PortabilityLayer/FileBrowserUI.cpp index d9c8232..06de308 100644 --- a/PortabilityLayer/FileBrowserUI.cpp +++ b/PortabilityLayer/FileBrowserUI.cpp @@ -513,7 +513,7 @@ namespace PortabilityLayer if (PortabilityLayer::HostSystemServices::GetInstance()->IsTextInputObstructive()) { dialogID = kFileBrowserUISaveDialogUnobstructiveTemplateID; - windowHeight = 240; + windowHeight = 208; isObstructive = true; } else