1. #1
    Touch Premium Member
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    1,340
    Vote Rating
    131
    LesJ is a name known to all LesJ is a name known to all LesJ is a name known to all LesJ is a name known to all LesJ is a name known to all LesJ is a name known to all

      0  

    Default getBBox - why always recalculated?

    getBBox - why always recalculated?


    Why getBBox() for Sprite or CompositeSprite is always recalculated from scratch? This looks like an expensive operation. I think the BBox should be calculated only once and then the BBox value should be cached and its value reused until attributes of the Sprite or CompositeSprite are changed.

  2. #2
    Sencha User steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,664
    Vote Rating
    7
    steffenk has a spectacular aura about steffenk has a spectacular aura about steffenk has a spectacular aura about

      0  

    Default


    i agree. Imho BBox should be property of sprite and calculated on render, only recalculated on move/resize/zoom.
    vg Steffen
    --------------------------------------
    Release Manager of TYPO3 4.5

Similar Threads

  1. grid column sizes do not get recalculated when grid in srunk
    By viulian in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 18 Aug 2008, 5:52 PM

Thread Participants: 1