Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
9010dd5d
Commit
9010dd5d
authored
14 years ago
by
Eli Linden
Browse files
Options
Downloads
Plain Diff
Merge
parents
2e7f87c0
60e8d3c6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/llsidetray.cpp
+11
-1
11 additions, 1 deletion
indra/newview/llsidetray.cpp
indra/newview/skins/default/xui/en/panel_picks.xml
+2
-13
2 additions, 13 deletions
indra/newview/skins/default/xui/en/panel_picks.xml
with
13 additions
and
14 deletions
indra/newview/llsidetray.cpp
+
11
−
1
View file @
9010dd5d
...
...
@@ -57,6 +57,8 @@ using namespace LLNotificationsUI;
static
LLRootViewRegistry
::
Register
<
LLSideTray
>
t1
(
"side_tray"
);
static
LLDefaultChildRegistry
::
Register
<
LLSideTrayTab
>
t2
(
"sidetray_tab"
);
static
const
S32
BOTTOM_BAR_PAD
=
5
;
static
const
std
::
string
COLLAPSED_NAME
=
"<<"
;
static
const
std
::
string
EXPANDED_NAME
=
">>"
;
...
...
@@ -316,6 +318,9 @@ void LLSideTrayTab::undock(LLFloater* floater_tab)
floater_tab
->
setTitle
(
mTabTitle
);
floater_tab
->
setName
(
getName
());
// Resize handles get obscured by added panel so move them to front.
floater_tab
->
moveResizeHandlesToFront
();
// Reshape the floater if needed.
LLRect
floater_rect
;
if
(
floater_tab
->
hasSavedRect
())
...
...
@@ -327,13 +332,18 @@ void LLSideTrayTab::undock(LLFloater* floater_tab)
{
// Detaching for the first time. Reshape the floater.
floater_rect
=
side_tray
->
getLocalRect
();
// Reduce detached floater height by small BOTTOM_BAR_PAD not to make it flush with the bottom bar.
floater_rect
.
mBottom
+=
LLBottomTray
::
getInstance
()
->
getRect
().
getHeight
()
+
BOTTOM_BAR_PAD
;
floater_rect
.
makeValid
();
floater_tab
->
reshape
(
floater_rect
.
getWidth
(),
floater_rect
.
getHeight
());
}
// Reshape the panel.
{
LLRect
panel_rect
=
floater_
r
ect
;
LLRect
panel_rect
=
floater_
tab
->
getLocalR
ect
()
;
panel_rect
.
mTop
-=
floater_tab
->
getHeaderHeight
();
panel_rect
.
makeValid
();
setRect
(
panel_rect
);
reshape
(
panel_rect
.
getWidth
(),
panel_rect
.
getHeight
());
}
...
...
This diff is collapsed.
Click to expand it.
indra/newview/skins/default/xui/en/panel_picks.xml
+
2
−
13
View file @
9010dd5d
...
...
@@ -106,18 +106,6 @@ bg_opaque_color="DkGray2"
user_resize=
"false"
auto_resize=
"true"
width=
"51"
>
<button
enabled=
"false"
follows=
"bottom|left"
height=
"18"
image_selected=
"OptionsMenu_Press"
image_unselected=
"OptionsMenu_Off"
image_disabled=
"OptionsMenu_Disabled"
layout=
"topleft"
left=
"0"
name=
"gear_menu_btn"
top_pad=
"0"
width=
"18"
/>
<button
follows=
"bottom|left"
height=
"18"
...
...
@@ -125,9 +113,10 @@ bg_opaque_color="DkGray2"
image_selected=
"AddItem_Press"
image_unselected=
"AddItem_Off"
layout=
"topleft"
left
_pad=
"15
"
left
=
"0
"
name=
"new_btn"
tool_tip=
"Create a new pick or classified at the current location"
top=
"0"
width=
"18"
/>
</layout_panel>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment