Results 1 to 5 of 5

Thread: Panel scroll not adjusting

  1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    26
    Answers
    1
    Vote Rating
    0
      0  

    Exclamation Answered: Panel scroll not adjusting

    Hi guys, I've been making some css keyframe animations for a panel in lieu of sencha's old panel transitions being available, and I now have a panel that slides to the right/left and fades out, then fades back and moves in from the opposite side.
    However, when the panel is off-screen the first time, I'm updating the contentEl variable so when it slides back in there's new content on the screen. But the scrollbar for the panel is no longer being updated- if the first content was smaller than the next, it won't scroll the full view of the next page. And vice versa, if it was bigger then there's all this dead space underneath the content where the scroll bar keeps going to.

    Is there a way to tell the scrollbar to automatically update itself, or for me to manually change the max-scroll-height to the div being read in?

    Cheers

  2. Thanks for pushing me in the right direction- I ended up solving it by calling refresh on the whole scroller object not just the sizemonitor.
    so in my example, after setting the variable height, i just called "height.refresh();' and it fixed it.

    Cheers!

  3. #2
    Sencha - Community Support Team mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,025
    Answers
    3976
    Vote Rating
    1334
      0  

    Default

    You can try refreshing the sizemonitor
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  4. #3
    Sencha User
    Join Date
    Oct 2011
    Posts
    26
    Answers
    1
    Vote Rating
    0
      0  

    Default

    Thanks for the suggestion-
    I tried getting the panel scroller;
    var height = panel.getScrollable().getScroller();
    then refresh the size monitor like this;
    height.sizeMonitors.container.refresh();
    height.sizeMonitors.element.refresh();

    but it still isn't getting the right height. Am I refreshing the wrong properties there?

  5. #4
    Sencha User
    Join Date
    Oct 2011
    Posts
    26
    Answers
    1
    Vote Rating
    0
      0  

    Wink solved!

    Thanks for pushing me in the right direction- I ended up solving it by calling refresh on the whole scroller object not just the sizemonitor.
    so in my example, after setting the variable height, i just called "height.refresh();' and it fixed it.

    Cheers!

  6. #5
    Sencha User siebmanb's Avatar
    Join Date
    Aug 2011
    Location
    Geneva (CH) - Grenoble (FR)
    Posts
    253
    Answers
    11
    Vote Rating
    16
      0  

    Default

    I have a panel containing only images. The fix "use refresh() on the scroller" does not work. Any new idea ?

    The only thing that works is when images have a fixed height. If you want the design to be responsive, it is not a solution.
    Twitter account @siebmanb.
    Co-founder & CEO at ButterflyEffect.
    Mobile application developer using Sencha Touch and Phonegap for iOS, Android and webapp.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •