Synchronizing statusbar with pre-FUI version: Fixes proper alignment of parcel info panel

master
Ansariel 2012-01-20 00:28:24 +01:00
parent e8418667bd
commit 16a840a42e
1 changed files with 14 additions and 3 deletions

View File

@ -397,10 +397,21 @@ void LLStatusBar::refresh()
{
gMenuBarView->reshape(MENU_RIGHT, gMenuBarView->getRect().getHeight());
}
// also update the parcel info panel pos -KC
if ((MENU_RIGHT + MENU_PARCEL_SPACING) != mParcelInfoPanel->getRect().mLeft)
{
updateParcelPanel();
}
mSGBandwidth->setVisible(net_stats_visible);
mSGPacketLoss->setVisible(net_stats_visible);
mBtnStats->setEnabled(net_stats_visible);
// Ansariel: This is done in LLStatusBar::updateNetstatVisibility()
//mSGBandwidth->setVisible(net_stats_visible);
//mSGPacketLoss->setVisible(net_stats_visible);
// It seems this button does no longer exist. I believe this was an overlay button on top of
// the net stats graphs to call up the lag meter floater. In case someone revives this, make
// sure to use a mSGStatsButton variable, because this function here is called an awful lot
// while the viewer runs, and dynamic lookup is very expensive. -Zi
//mBtnStats->setEnabled(net_stats_visible);
// update the master volume button state
bool mute_audio = LLAppViewer::instance()->getMasterSystemAudioMute();