Changeset 1185 for trunk


Ignore:
Timestamp:
10/18/18 17:10:38 (6 years ago)
Author:
bln4
Message:

Reverse of previous commit. Width of Item is being set based on the very small (120px wide) window that occurs during startup. This is applied to Items, resulting in a width of -80 being applied. This is also causing the Title Items to be placed further down than they are supposed to due to default1 contamination: The function resetTitlePosition is used to correctly position a title on the page. When deciding on what position to place it at, this function uses the height of the text. The idea is seemingly that taller text should be given more buffer space at the top of the screen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gio/swing/SwingTextLayoutManager.java

    r1184 r1185  
    267267                        // If it's impossible to layout any more text without breaking a word, just do it
    268268                        if (layout == null && width == widthLimit) {
    269                                 layout = lineBreaker.nextLayout(Integer.MAX_VALUE, end, false);
     269                                layout = lineBreaker.nextLayout(width, end, false);
    270270                                // If still impossible, give up
    271271                               
Note: See TracChangeset for help on using the changeset viewer.