On very tall screens - ng-infinite-scroll will never trigger to load more content











up vote
0
down vote

favorite












I have a situation where if I flip my monitor to portrait so it is very tall, infinite scroll will never trigger to add more items and scroll. EG



enter image description here



When I flip my monitor to landscape it works again.



What should I do to make infinite scroll load more items when the screen in in portrait mode?



<div layout="column"
layout-fill
layout-padding>
<div layout="row"
layout-align="start center">
<span flex="50">
<md-input-container class="md-block"
cb-focus>
<label class="cb-field-label">Filter History</label>
<input type="text"
id="search-filter"
name="search-filter"
ng-model="$ctrl.historyFilter"
ng-model-options="{ debounce: 300 }">
</md-input-container>
</span>
<span flex></span>
</div>
<div layout="column">
<div class="standardTable">
<table>
<thead>
<tr>
<td>Date</td>
<td>Action</td>
<td>User</td>
<td></td>
</tr>
</thead>
<tbody infinite-scroll="$ctrl.search()"
infinite-scroll-distance="3"
infinite-scroll-disabled="$ctrl.noMoreResults"
infinite-scroll-container="'div#mainContainer'">
<tr ng-repeat="history in filteredHistory = ($ctrl.history | filter : $ctrl.filterHistory) | orderBy: '-date' "
height="46">{{history}}
<td>
<cb-user-date-time date="history.date"></cb-user-date-time>
</td>
<td>
<cb-enum id="history.eventType"
options="$ctrl.eventTypes"></cb-enum>
</td>
<td>{{history.contactName}}</td>
<td class="actions">
<md-button class="md-icon-button md-raised"
ng-click="$ctrl.historyInfo($event, history)"
ng-if="history.details.length > 0">
<md-icon>help_outline</md-icon>
</md-button>
</td>
</tr>
<tr ng-if="$ctrl.history.$resolved && filteredHistory.length < 1 && !$ctrl.historyFilter">
<td colspan="4">
<md-icon class="md-accent">info</md-icon>&nbsp;There is no History activity on this Lot
</td>
</tr>
<tr ng-if="$ctrl.history.$resolved && filteredHistory.length < 1 && !!$ctrl.historyFilter">
<td colspan="4">
<md-icon class="md-accent">info</md-icon>&nbsp;There was no History activity found
</td>
</tr>
<tr ng-if="!$ctrl.history.$resolved ">
<td colspan="4">
<div layout="row">
<div class="loader"></div>
&nbsp;&nbsp;Please wait, loading...
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>









share|improve this question




























    up vote
    0
    down vote

    favorite












    I have a situation where if I flip my monitor to portrait so it is very tall, infinite scroll will never trigger to add more items and scroll. EG



    enter image description here



    When I flip my monitor to landscape it works again.



    What should I do to make infinite scroll load more items when the screen in in portrait mode?



    <div layout="column"
    layout-fill
    layout-padding>
    <div layout="row"
    layout-align="start center">
    <span flex="50">
    <md-input-container class="md-block"
    cb-focus>
    <label class="cb-field-label">Filter History</label>
    <input type="text"
    id="search-filter"
    name="search-filter"
    ng-model="$ctrl.historyFilter"
    ng-model-options="{ debounce: 300 }">
    </md-input-container>
    </span>
    <span flex></span>
    </div>
    <div layout="column">
    <div class="standardTable">
    <table>
    <thead>
    <tr>
    <td>Date</td>
    <td>Action</td>
    <td>User</td>
    <td></td>
    </tr>
    </thead>
    <tbody infinite-scroll="$ctrl.search()"
    infinite-scroll-distance="3"
    infinite-scroll-disabled="$ctrl.noMoreResults"
    infinite-scroll-container="'div#mainContainer'">
    <tr ng-repeat="history in filteredHistory = ($ctrl.history | filter : $ctrl.filterHistory) | orderBy: '-date' "
    height="46">{{history}}
    <td>
    <cb-user-date-time date="history.date"></cb-user-date-time>
    </td>
    <td>
    <cb-enum id="history.eventType"
    options="$ctrl.eventTypes"></cb-enum>
    </td>
    <td>{{history.contactName}}</td>
    <td class="actions">
    <md-button class="md-icon-button md-raised"
    ng-click="$ctrl.historyInfo($event, history)"
    ng-if="history.details.length > 0">
    <md-icon>help_outline</md-icon>
    </md-button>
    </td>
    </tr>
    <tr ng-if="$ctrl.history.$resolved && filteredHistory.length < 1 && !$ctrl.historyFilter">
    <td colspan="4">
    <md-icon class="md-accent">info</md-icon>&nbsp;There is no History activity on this Lot
    </td>
    </tr>
    <tr ng-if="$ctrl.history.$resolved && filteredHistory.length < 1 && !!$ctrl.historyFilter">
    <td colspan="4">
    <md-icon class="md-accent">info</md-icon>&nbsp;There was no History activity found
    </td>
    </tr>
    <tr ng-if="!$ctrl.history.$resolved ">
    <td colspan="4">
    <div layout="row">
    <div class="loader"></div>
    &nbsp;&nbsp;Please wait, loading...
    </div>
    </td>
    </tr>
    </tbody>
    </table>
    </div>
    </div>
    </div>









    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have a situation where if I flip my monitor to portrait so it is very tall, infinite scroll will never trigger to add more items and scroll. EG



      enter image description here



      When I flip my monitor to landscape it works again.



      What should I do to make infinite scroll load more items when the screen in in portrait mode?



      <div layout="column"
      layout-fill
      layout-padding>
      <div layout="row"
      layout-align="start center">
      <span flex="50">
      <md-input-container class="md-block"
      cb-focus>
      <label class="cb-field-label">Filter History</label>
      <input type="text"
      id="search-filter"
      name="search-filter"
      ng-model="$ctrl.historyFilter"
      ng-model-options="{ debounce: 300 }">
      </md-input-container>
      </span>
      <span flex></span>
      </div>
      <div layout="column">
      <div class="standardTable">
      <table>
      <thead>
      <tr>
      <td>Date</td>
      <td>Action</td>
      <td>User</td>
      <td></td>
      </tr>
      </thead>
      <tbody infinite-scroll="$ctrl.search()"
      infinite-scroll-distance="3"
      infinite-scroll-disabled="$ctrl.noMoreResults"
      infinite-scroll-container="'div#mainContainer'">
      <tr ng-repeat="history in filteredHistory = ($ctrl.history | filter : $ctrl.filterHistory) | orderBy: '-date' "
      height="46">{{history}}
      <td>
      <cb-user-date-time date="history.date"></cb-user-date-time>
      </td>
      <td>
      <cb-enum id="history.eventType"
      options="$ctrl.eventTypes"></cb-enum>
      </td>
      <td>{{history.contactName}}</td>
      <td class="actions">
      <md-button class="md-icon-button md-raised"
      ng-click="$ctrl.historyInfo($event, history)"
      ng-if="history.details.length > 0">
      <md-icon>help_outline</md-icon>
      </md-button>
      </td>
      </tr>
      <tr ng-if="$ctrl.history.$resolved && filteredHistory.length < 1 && !$ctrl.historyFilter">
      <td colspan="4">
      <md-icon class="md-accent">info</md-icon>&nbsp;There is no History activity on this Lot
      </td>
      </tr>
      <tr ng-if="$ctrl.history.$resolved && filteredHistory.length < 1 && !!$ctrl.historyFilter">
      <td colspan="4">
      <md-icon class="md-accent">info</md-icon>&nbsp;There was no History activity found
      </td>
      </tr>
      <tr ng-if="!$ctrl.history.$resolved ">
      <td colspan="4">
      <div layout="row">
      <div class="loader"></div>
      &nbsp;&nbsp;Please wait, loading...
      </div>
      </td>
      </tr>
      </tbody>
      </table>
      </div>
      </div>
      </div>









      share|improve this question















      I have a situation where if I flip my monitor to portrait so it is very tall, infinite scroll will never trigger to add more items and scroll. EG



      enter image description here



      When I flip my monitor to landscape it works again.



      What should I do to make infinite scroll load more items when the screen in in portrait mode?



      <div layout="column"
      layout-fill
      layout-padding>
      <div layout="row"
      layout-align="start center">
      <span flex="50">
      <md-input-container class="md-block"
      cb-focus>
      <label class="cb-field-label">Filter History</label>
      <input type="text"
      id="search-filter"
      name="search-filter"
      ng-model="$ctrl.historyFilter"
      ng-model-options="{ debounce: 300 }">
      </md-input-container>
      </span>
      <span flex></span>
      </div>
      <div layout="column">
      <div class="standardTable">
      <table>
      <thead>
      <tr>
      <td>Date</td>
      <td>Action</td>
      <td>User</td>
      <td></td>
      </tr>
      </thead>
      <tbody infinite-scroll="$ctrl.search()"
      infinite-scroll-distance="3"
      infinite-scroll-disabled="$ctrl.noMoreResults"
      infinite-scroll-container="'div#mainContainer'">
      <tr ng-repeat="history in filteredHistory = ($ctrl.history | filter : $ctrl.filterHistory) | orderBy: '-date' "
      height="46">{{history}}
      <td>
      <cb-user-date-time date="history.date"></cb-user-date-time>
      </td>
      <td>
      <cb-enum id="history.eventType"
      options="$ctrl.eventTypes"></cb-enum>
      </td>
      <td>{{history.contactName}}</td>
      <td class="actions">
      <md-button class="md-icon-button md-raised"
      ng-click="$ctrl.historyInfo($event, history)"
      ng-if="history.details.length > 0">
      <md-icon>help_outline</md-icon>
      </md-button>
      </td>
      </tr>
      <tr ng-if="$ctrl.history.$resolved && filteredHistory.length < 1 && !$ctrl.historyFilter">
      <td colspan="4">
      <md-icon class="md-accent">info</md-icon>&nbsp;There is no History activity on this Lot
      </td>
      </tr>
      <tr ng-if="$ctrl.history.$resolved && filteredHistory.length < 1 && !!$ctrl.historyFilter">
      <td colspan="4">
      <md-icon class="md-accent">info</md-icon>&nbsp;There was no History activity found
      </td>
      </tr>
      <tr ng-if="!$ctrl.history.$resolved ">
      <td colspan="4">
      <div layout="row">
      <div class="loader"></div>
      &nbsp;&nbsp;Please wait, loading...
      </div>
      </td>
      </tr>
      </tbody>
      </table>
      </div>
      </div>
      </div>






      angularjs nginfinitescroll






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 5 hours ago

























      asked 6 hours ago









      BeniaminoBaggins

      2,618849123




      2,618849123





























          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53400764%2fon-very-tall-screens-ng-infinite-scroll-will-never-trigger-to-load-more-conten%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53400764%2fon-very-tall-screens-ng-infinite-scroll-will-never-trigger-to-load-more-conten%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Berounka

          Sphinx de Gizeh

          Different font size/position of beamer's navigation symbols template's content depending on regular/plain...