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 | 12d38f75fa620f5df4cb7a3a5b47b6a09f639045 (patch) | |
tree | 2a0d9f88af45c8571d4261233fd53896a538b702 | |
parent | 637fedfd455ccf59ca4466ace32ef6c67f3ee112 (diff) | |
download | scintilla-mirror-12d38f75fa620f5df4cb7a3a5b47b6a09f639045.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.
-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); |