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/items/widgets/Widget.java

    r1258 r1511  
    11131113                        case ItemParentStateChangedEvent.EVENT_TYPE_ADDED:
    11141114                        case ItemParentStateChangedEvent.EVENT_TYPE_ADDED_VIA_OVERLAY:
     1115                                System.err.println("Widget::onParentStateChanged: Added but not yet shown widget.");
     1116                                break;
    11151117                        case ItemParentStateChangedEvent.EVENT_TYPE_SHOWN:
    11161118                        case ItemParentStateChangedEvent.EVENT_TYPE_SHOWN_VIA_OVERLAY:
     1119                                System.err.println("Widget::onParentStateChanged: Shown widget.");
    11171120                                EcosystemManager.addInteractiveWidget(this);
    11181121                                addWidgetContent(e);
Note: See TracChangeset for help on using the changeset viewer.