[gnome-characters/wip/dueno/emoji] characterList: Feed characters only if scrolled window is resized
- From: Daiki Ueno <dueno src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-characters/wip/dueno/emoji] characterList: Feed characters only if scrolled window is resized
- Date: Thu, 24 Aug 2017 14:50:32 +0000 (UTC)
commit ebc4cb8ec8aea56bfe101542cf0ffe37a03c85db
Author: Daiki Ueno <dueno src gnome org>
Date: Thu Aug 24 16:46:57 2017 +0200
characterList: Feed characters only if scrolled window is resized
src/characterList.js | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/characterList.js b/src/characterList.js
index a897131..a623ff9 100644
--- a/src/characterList.js
+++ b/src/characterList.js
@@ -501,6 +501,7 @@ var CharacterListView = new Lang.Class({
this._updateCharacterList();
}));
scroll.connect('edge-reached', Lang.bind(this, this._onEdgeReached));
+ scroll.connect('size-allocate', Lang.bind(this, this._onSizeAllocate));
},
_startSpinner: function() {
@@ -575,9 +576,7 @@ var CharacterListView = new Lang.Class({
return Math.max(MAX_SEARCH_RESULTS, heightInRows * cellsPerRow);
},
- vfunc_size_allocate: function(allocation) {
- this.parent(allocation);
-
+ _onSizeAllocate: function(scrolled, allocation) {
if (this._characters.length < this.initialSearchCount) {
this._maybeLoadMore();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]