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/gio/gesture/StandardGestureActions.java

    r1503 r1511  
    12081208                }
    12091209                if (bReparse) {
    1210                         FrameUtils.Parse(currentFrame, false, false);
     1210                        FrameUtils.Parse(currentFrame, false, false, false);
    12111211                } else {
    12121212                        currentFrame.notifyObservers(bRecalculate);
     
    19331933                Frame currentFrame = DisplayController.getCurrentFrame();
    19341934                if (bReparse) {
    1935                         FrameUtils.Parse(currentFrame, false, false);
     1935                        FrameUtils.Parse(currentFrame, false, false, false);
    19361936                } else {
    19371937                        currentFrame.notifyObservers(bRecalculate);
     
    20132013                itemList.clear();
    20142014                if (bReparse) {
    2015                         FrameUtils.Parse(currentFrame, false, false);
     2015                        FrameUtils.Parse(currentFrame, false, false, false);
    20162016                        /*
    20172017                         * TODO check if I need to recalculate even if reparse occurs, here and in
     
    33443344                        }
    33453345                        if (toDelete.hasOverlay()) {
    3346                                 FrameUtils.Parse(parent, false, false);
     3346                                FrameUtils.Parse(parent, false, false, false);
    33473347                                DisplayController.requestRefresh(false);
    33483348                        }
Note: See TracChangeset for help on using the changeset viewer.