Skip to content
Snippets Groups Projects
Commit 4707cd47 authored by Igor Borovkov's avatar Igor Borovkov
Browse files

refixed EXT-4316 Side panel slides to the left in a newly created IM window

--HG--
branch : product-engine
parent 9390fa1b
No related branches found
No related tags found
No related merge requests found
...@@ -351,13 +351,15 @@ void* LLIMFloater::createPanelAdHocControl(void* userdata) ...@@ -351,13 +351,15 @@ void* LLIMFloater::createPanelAdHocControl(void* userdata)
void LLIMFloater::onSlide() void LLIMFloater::onSlide()
{ {
LLPanel* im_control_panel = getChild<LLPanel>("panel_im_control_panel"); mControlPanel->setVisible(!mControlPanel->getVisible());
im_control_panel->setVisible(!im_control_panel->getVisible());
gSavedSettings.setBOOL("IMShowControlPanel", im_control_panel->getVisible()); gSavedSettings.setBOOL("IMShowControlPanel", mControlPanel->getVisible());
getChild<LLButton>("slide_left_btn")->setVisible(im_control_panel->getVisible()); getChild<LLButton>("slide_left_btn")->setVisible(mControlPanel->getVisible());
getChild<LLButton>("slide_right_btn")->setVisible(!im_control_panel->getVisible()); getChild<LLButton>("slide_right_btn")->setVisible(!mControlPanel->getVisible());
LLLayoutStack* stack = getChild<LLLayoutStack>("im_panels");
if (stack) stack->setAnimate(true);
} }
//static //static
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment