Changeset 274 for trunk


Ignore:
Timestamp:
07/22/06 04:39:02 (18 years ago)
Author:
Nicholas Riley
Message:

Get rid of phantom full-size scrollbar; remove border if list is empty.

Location:
trunk/hiptop/pester
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/hiptop/pester/locale/en_US/Pester.rsrc

    r261 r274  
    5858
    5959        activeListView
    60                 fillToBottom = 0
    6160                id = ID_ALARM_LIST_VIEW
    6261                alignWithParentLeft = 0
  • trunk/hiptop/pester/net/sabi/pester/AlarmListView.java

    r273 r274  
    2222    public void onDecoded() {
    2323        sAlarmListWindow = (AlarmListWindow)getWindow();
     24        setAutoResize(true);
     25        setHasBorder(false); // this doesn't work in the rsrc file
    2426        setList(Alarms.getList());
     27        if (alarmsSet() > 0)
     28            setHasBorder(true);
    2529        mToolTipAlarm = new danger.app.Alarm(0, this);
    2630        super.onDecoded();
     
    110114        // which is admirable in general, but not what we want
    111115        setFocus(index);
     116        setHasBorder(true);
    112117    }
    113118    public void onItemRemoved(ActiveList list, Object item, int index) {
     
    115120        sAlarmListWindow.updateAlarmCount();
    116121        super.onItemRemoved(list, item, index);
     122        if (alarmsSet() == 0)
     123            setHasBorder(false);
    117124    }
    118125}
Note: See TracChangeset for help on using the changeset viewer.