Fix the fix for #75694.

This commit is contained in:
Matthias Clasen 2002-12-27 12:19:13 +00:00
parent 0ff9554fc3
commit 69ff8606df

View File

@ -2986,8 +2986,9 @@ gtk_text_view_size_allocate (GtkWidget *widget,
text_view->hadjustment->upper = MAX (SCREEN_WIDTH (text_view), text_view->hadjustment->upper = MAX (SCREEN_WIDTH (text_view),
text_view->width); text_view->width);
gtk_adjustment_changed (text_view->hadjustment); gtk_adjustment_changed (text_view->hadjustment);
set_adjustment_clamped (text_view->hadjustment,
text_view->hadjustment->upper - text_view->hadjustment->page_size); if (text_view->hadjustment->value > text_view->hadjustment->upper - text_view->hadjustment->page_size)
gtk_adjustment_set_value (text_view->hadjustment, MAX (0, text_view->hadjustment->upper - text_view->hadjustment->page_size));
text_view->vadjustment->page_size = SCREEN_HEIGHT (text_view); text_view->vadjustment->page_size = SCREEN_HEIGHT (text_view);
text_view->vadjustment->page_increment = SCREEN_HEIGHT (text_view) * 0.9; text_view->vadjustment->page_increment = SCREEN_HEIGHT (text_view) * 0.9;