Changeset 924
- Timestamp:
- 10/02/14 18:27:27 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/gui/FrameIO.java
r919 r924 48 48 import org.expeditee.items.Item; 49 49 import org.expeditee.items.ItemUtils; 50 import org.expeditee.items.Justification; 50 51 import org.expeditee.items.PermissionPair; 51 52 import org.expeditee.items.Text; … … 698 699 } 699 700 700 // do auto shrinking of the title IF not in twin frames mode 701 // do auto shrinking of the title IF not in twin frames mode and the title is not centred 701 702 Item titleItem = template.getTitleItem(); 702 703 703 if (!DisplayIO.isTwinFramesOn() ) {704 if (!DisplayIO.isTwinFramesOn() && !Justification.center.equals(((Text)titleItem).getJustification())) { 704 705 if ((titleItem.getX() + 1) < template.getNameItem().getX()) { 705 706 while (titleItem.getSize() > Text.MINIMUM_FONT_SIZE … … 707 708 .getNameItem().getX()) { 708 709 titleItem.setSize(titleItem.getSize() - 1); 709 710 710 } 711 711 } else { … … 713 713 } 714 714 } 715 716 715 // Assign a width to the title. 717 716 titleItem.setRightMargin(template.getNameItem().getX(), true);
Note:
See TracChangeset
for help on using the changeset viewer.