Account for scrollbar size when checking if scrolled
This commit is contained in:
parent
331b2ec7eb
commit
2fb0472ab1
@ -447,7 +447,8 @@ check_if_scrolled (MooLineView *view)
|
||||
{
|
||||
GtkAdjustment *adj = GTK_TEXT_VIEW (view)->vadjustment;
|
||||
view->priv->scrolled = adj && GTK_WIDGET_REALIZED (view) &&
|
||||
ABS (adj->value - (adj->upper - adj->page_size)) > 10;
|
||||
/* XXX get scrollbar size here */
|
||||
ABS (adj->value - (adj->upper - adj->page_size)) > 20;
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -510,7 +511,7 @@ moo_line_view_write (MooLineView *view,
|
||||
}
|
||||
|
||||
|
||||
static GtkTextMark*
|
||||
static GtkTextMark *
|
||||
get_end_mark (MooLineView *view)
|
||||
{
|
||||
GtkTextIter iter;
|
||||
|
Loading…
x
Reference in New Issue
Block a user