Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Commit 227dc6c

Browse files
committed
[NuGet] Fix file license dialog scrollbar not always enabled
When the loading of the file license text happens after the dialog has been displayed the vertical scrollbar for the rich text view would not be enabled unless the dialog was resized by the user. This seems to happen only when using the native toolkit with XWT. To workaround this the dialog's OnReallocate method is called when the license text is loaded after the dialog is shown. This enables the vertical scrollbar if the license text is too long to be displayed.
1 parent 33b2ae8 commit 227dc6c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

main/src/addins/MonoDevelop.PackageManagement/MonoDevelop.PackageManagement.Gui/LicenseFileDialog.cs

+4
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ void Build ()
6969
void LicenseFileTextPropertyChanged (object sender, PropertyChangedEventArgs e)
7070
{
7171
LoadText ();
72+
73+
// Need to refresh the dialog after the license text has been loaded. Otherwise when using the
74+
// native toolkit the vertical scrollbar is not enabled unless you re-size the dialog.
75+
OnReallocate ();
7276
}
7377

7478
void LoadText ()

0 commit comments

Comments
 (0)