Ignore:
Timestamp:
02/19/20 10:44:38 (4 years ago)
Author:
bnemhaus
Message:

Frame::Parse has been updated to include a new boolean parameter. When true, widgets that are created as a result of the parse send not only notify the widget framework that they have been added, but are also visible. When false, they only notify they have been added.

The widget framework now distinguishes between added and visible widgets, this fixes a bug. Bug: when programmatically adding a widget to not the current frame, it never gets properly removed and therefore still catches click events from users. By distinguishing between adding and making visible this is avoided.


Another bug has been fixed. Bug: When setting a text item to have a right anchor, and then subsequently reducing the size of the window, this text item would get a width of zero assigned. This was caused by some issues with the logic of how right margins for items were calculated.

File:
1 edited

Legend:

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

    r1509 r1511  
    11961196               
    11971197                if (reparse) {
    1198                         FrameUtils.Parse(this, false, false);
     1198                        FrameUtils.Parse(this, false, false, false);
    11991199                } else {
    12001200                        notifyObservers(recalculate);
     
    12581258               
    12591259                if (bReparse) {
    1260                         FrameUtils.Parse(this, false, false);
     1260                        FrameUtils.Parse(this, false, false, false);
    12611261                } else {
    12621262                        notifyObservers(bRecalculate);
Note: See TracChangeset for help on using the changeset viewer.