ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

perf: resize is too slow when ion-content size changes for scrolling

Open mikey0000 opened this issue 11 years ago • 6 comments

Type: perf

Platform: ios 7 webview

When I add more content to ion-content it takes too long to resize and when I scroll it bounces back before reaching the end of the content.

mikey0000 avatar Jan 15 '15 00:01 mikey0000

Yep I see this too, looking for workaround. Tried

$scope.$broadcast('scroll.resize');

(when switching on content via a toogle in my case) to no avail. Tried ng-if and ng-show for the content switching, same thing either way.

grahamj avatar Jan 22 '15 17:01 grahamj

Greetings @mikey0000!

My sensors indicate that I require more information in order to assist you.

  • Can you provide a detailed description of this issue?
  • How would a robot go about replicating this issue?
  • On which platform does this happen occur? (iOS, Android, all, etc.)
  • On which platform versions does this occur? (Android 4.2, iOS 8, all, etc.)
  • Is this an issue with the Ionic Framework or Ionic CLI?

Additionally, providing a codepen that replicates the issue is extremely helpful.

If you wish to get help using the framework itself, I recommended visiting the forum, where many humans will be able to offer wisdom and advice.

Thank you for allowing me to assist you.

Ionitron avatar Jan 30 '15 21:01 Ionitron

Was there ever an update/fix for this? I'm having the same issue with scrolling when using ng-show in an ion-content. Here's a basic plunker showing the general idea: http://plnkr.co/edit/xIEVmffOuZPkjlWdjS5k?p=preview

Possible workaround is to call $ionicScrollDelegate.resize() whenever you show/hide.

cnd5041 avatar Mar 25 '15 01:03 cnd5041

cnd5041

http://neworleansconstructioncompany.net/betonmarkets-front

25.03.2015, 04:04, "cnd5041" [email protected]:Was there ever an update/fix for this? I'm having the same issue with scrolling when using ng-show in an ion-content. Here's a basic plunker showing the general idea:

—Reply to this email directly or .

Fayozjon avatar Mar 25 '15 04:03 Fayozjon

I am having the same problem. Does the work around work?

devstu avatar Apr 28 '15 20:04 devstu

The $ionicScrollDelegate.resize() did work well for me. Never went back to look for better alternatives.

cnd5041 avatar Apr 28 '15 20:04 cnd5041

Awesome thanks! Maybe we need an ion-show and ion-hide directive that would automatically call the $ionicScrollDelegate.resize. But for now I can fix on my own, thanks!

On Tue, Apr 28, 2015 at 2:31 PM, cnd5041 [email protected] wrote:

The $ionicScrollDelegate.resize() did work well for me. Never went back to look for better alternatives.

— Reply to this email directly or view it on GitHub https://github.com/driftyco/ionic/issues/2940#issuecomment-97199125.

devstu avatar Apr 28 '15 20:04 devstu