AllView: prevent accessing a NULL effect
In some cases we might be allocated a size such that this._grid.topPadding and this._grid.bottomPadding are both 0 which means that the ScrollView fade effect gets removed. In that case don't try to access the effect since it will be NULL. https://bugzilla.gnome.org/show_bug.cgi?id=750714
This commit is contained in:
parent
9e0a5fa3a9
commit
a341b74aeb
@ -753,6 +753,7 @@ const AllView = new Lang.Class({
|
||||
let fadeOffset = Math.min(this._grid.topPadding,
|
||||
this._grid.bottomPadding);
|
||||
this._scrollView.update_fade_effect(fadeOffset, 0);
|
||||
if (fadeOffset > 0)
|
||||
this._scrollView.get_effect('fade').fade_edges = true;
|
||||
|
||||
if (this._availWidth != availWidth || this._availHeight != availHeight || oldNPages != this._grid.nPages()) {
|
||||
|
Loading…
Reference in New Issue
Block a user