From c94e3248aeaa9e64f9a16db2cc167200eb43603f Mon Sep 17 00:00:00 2001 From: Matthew Brush Date: Thu, 31 Mar 2011 23:54:06 -0700 Subject: 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. --- gtk/ScintillaGTK.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk') 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); -- cgit v1.2.3