Changeset 875


Ignore:
Timestamp:
02/10/14 01:19:29 (10 years ago)
Author:
ngw8
Message:

Changes to XRayable anchoring:
Bug fixes so that anchoring top doesn't offset the item by its height (so anchortop = 0 now puts the item hard against the top of the frame, rather than [itemheight] pixels from the top) and anchoring right now sets the position based on the width of the item, rather than the width of its source text.

(Sidenote: circle anchoring might also need to be fixed up, seems to have been inconsistent for a while (prior to my changes tonight))

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/items/XRayable.java

    r805 r875  
    264264                _source.setAnchorTop(anchor);
    265265                if (anchor != null)
    266                         _source.setY(anchor + getHeight());
     266                        _source.setY(anchor);
    267267        }
    268268
     
    283283        public void setAnchorRight(Float anchor) {
    284284                _source.setAnchorRight(anchor);
     285                _source.setX(FrameGraphics.getMaxFrameSize().width - anchor - this.getWidth());
    285286        }
    286287       
Note: See TracChangeset for help on using the changeset viewer.