Results 1 to 2 of 2

Thread: getBBox - why always recalculated?

  1. #1
    Sencha Premium User
    Join Date
    Nov 2010
    Location
    Chicago
    Posts
    1,932
    Vote Rating
    548
      0  

    Default 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 Premium Member steffenk's Avatar
    Join Date
    Jul 2007
    Location
    Haan, Germany
    Posts
    2,676
    Vote Rating
    9
      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

Posting Permissions

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