Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Ward <matt.ward@xamarin.com>2017-05-31 21:06:11 +0300
committerMatt Ward <matt.ward@xamarin.com>2017-05-31 21:06:11 +0300
commitd13ab6201293c387d5b2ab7e4b948e9e40b647d2 (patch)
treea887b0f433ad0c07f3c286120130bf61cd679449 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects
parente46153b12318763c727fc032c6333c8971e9ec48 (diff)
[Ide] Allow New Project dialog to resize to fit text
Fixed bug #54704 - Truncation on dialog "Configure your new Single View App" https://bugzilla.xamarin.com/show_bug.cgi?id=54704 With German selected as the IDE language the New Project dialog would cut off some of the controls on the left hand side of the final page of the dialog. This was because the dialog had a fixed width.
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/GtkNewProjectDialogBackend.UI.cs5
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/GtkProjectConfigurationWidget.cs6
2 files changed, 8 insertions, 3 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/GtkNewProjectDialogBackend.UI.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/GtkNewProjectDialogBackend.UI.cs
index 71153a708c..f26bb65dba 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/GtkNewProjectDialogBackend.UI.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/GtkNewProjectDialogBackend.UI.cs
@@ -101,8 +101,8 @@ namespace MonoDevelop.Ide.Projects
void Build ()
{
BorderWidth = 0;
- WidthRequest = 901;
- HeightRequest = 632;
+ DefaultWidth = 901;
+ DefaultHeight = 632;
Name = "wizard_dialog";
Title = GettextCatalog.GetString ("New Project");
@@ -325,7 +325,6 @@ namespace MonoDevelop.Ide.Projects
Show ();
templatesTreeView.HasFocus = true;
- Resizable = false;
}
TreeViewColumn CreateTemplateCategoriesTreeViewColumn ()
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/GtkProjectConfigurationWidget.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/GtkProjectConfigurationWidget.cs
index 9e3b1bca3f..f149b40108 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/GtkProjectConfigurationWidget.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/GtkProjectConfigurationWidget.cs
@@ -71,6 +71,12 @@ namespace MonoDevelop.Ide.Projects
defaultTableRows = projectConfigurationTable.NRows;
+ // Disable width request for the event box otherwise the New Project dialog
+ // does not resize to fit. Set a width request for the project name text box
+ // instead so the project folder preview widget does not take up more width.
+ projectConfigurationTableEventBox.WidthRequest = -1;
+ projectNameTextBox.WidthRequest = 335;
+
RegisterEvents ();
// Accessibility