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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.