Changeset 923


Ignore:
Timestamp:
09/26/14 15:45:34 (10 years ago)
Author:
jts21
Message:

Justify text items on delete and undo/redo

Location:
trunk/src/org/expeditee/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gui/Frame.java

    r919 r923  
    10021002                FrameGraphics.requestRefresh(false);
    10031003                FrameGraphics.Repaint();
    1004                 ItemUtils.EnclosedCheck(_body);
     1004                // ItemUtils.EnclosedCheck(_body);
     1005                ItemUtils.Justify(this);
    10051006        }
    10061007       
     
    10561057                FrameGraphics.requestRefresh(false);
    10571058                FrameGraphics.Repaint();
    1058                 ItemUtils.EnclosedCheck(_body);
     1059                // ItemUtils.EnclosedCheck(_body);
     1060                ItemUtils.Justify(this);
    10591061        }
    10601062
  • trunk/src/org/expeditee/gui/FrameMouseActions.java

    r920 r923  
    27172717                        updateCursor();
    27182718                        if (parent != null)
    2719                                 ItemUtils.EnclosedCheck(parent.getItems());
     2719                                // ItemUtils.EnclosedCheck(parent.getItems());
     2720                                ItemUtils.Justify(parent);
    27202721                        if (toDelete.hasOverlay()) {
    27212722                                FrameUtils.Parse(parent, false, false);
     
    27922793                for (Frame f : modifiedFrames) {
    27932794                        f.removeAllItems(itemList);
    2794                         ItemUtils.EnclosedCheck(f.getItems());
     2795                        // ItemUtils.EnclosedCheck(f.getItems());
     2796                        ItemUtils.Justify(f);
    27952797                }
    27962798                // TODO: How should undelete deal with undo when items are removed from
     
    32673269                // Check enclosure for all the frames of the items that were anchored
    32683270                for (Frame f : checkEnclosure) {
    3269                         ItemUtils.EnclosedCheck(f.getItems());
    3270                 }
    3271                
    3272                 // justify text items now
    3273                 ItemUtils.Justify(toAnchorCopy);
     3271                        // ItemUtils.EnclosedCheck(f.getItems());
     3272                        ItemUtils.Justify(f);
     3273                }
    32743274
    32753275                Frame currentFrame = DisplayIO.getCurrentFrame();
Note: See TracChangeset for help on using the changeset viewer.