diff options
| author | Matthew Brush <matthewbrush@gmail.com> | 2011-03-31 23:54:06 -0700 | 
|---|---|---|
| committer | Matthew Brush <matthewbrush@gmail.com> | 2011-03-31 23:54:06 -0700 | 
| commit | c94e3248aeaa9e64f9a16db2cc167200eb43603f (patch) | |
| tree | deb8cb5473655744cdf2f981b1da63d0259e6328 /gtk/ScintillaGTK.cxx | |
| parent | d8849ff4fafc047bad56fe6bd4c2b6d76ca26d9a (diff) | |
| download | scintilla-mirror-c94e3248aeaa9e64f9a16db2cc167200eb43603f.tar.gz | |
Fix sizing issue in GTK+ widget.
Rather than use an unusual default size of 600 x SCREEN_HEIGHT,
request -1 x -1 for the natural widget size.
Diffstat (limited to 'gtk/ScintillaGTK.cxx')
| -rw-r--r-- | gtk/ScintillaGTK.cxx | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 117357668..646871ad4 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -609,8 +609,8 @@ gint ScintillaGTK::FocusOut(GtkWidget *widget, GdkEventFocus * /*event*/) {  void ScintillaGTK::SizeRequest(GtkWidget *widget, GtkRequisition *requisition) {  	ScintillaGTK *sciThis = ScintillaFromWidget(widget); -	requisition->width = 600; -	requisition->height = gdk_screen_height(); +	requisition->width = -1; +	requisition->height = -1;  	GtkRequisition child_requisition;  	gtk_widget_size_request(PWidget(sciThis->scrollbarh), &child_requisition);  	gtk_widget_size_request(PWidget(sciThis->scrollbarv), &child_requisition); | 
