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
4d9e3e15
Commit
4d9e3e15
authored
12 years ago
by
maksymsproductengine
Browse files
Options
Downloads
Patches
Plain Diff
CHUI-855 FIXED Text entry bar auto expand does not resize
parent
9887daa3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/llfloaterimsessiontab.cpp
+10
-10
10 additions, 10 deletions
indra/newview/llfloaterimsessiontab.cpp
indra/newview/llfloaterimsessiontab.h
+3
-2
3 additions, 2 deletions
indra/newview/llfloaterimsessiontab.h
with
13 additions
and
12 deletions
indra/newview/llfloaterimsessiontab.cpp
+
10
−
10
View file @
4d9e3e15
...
@@ -58,11 +58,12 @@ LLFloaterIMSessionTab::LLFloaterIMSessionTab(const LLSD& session_id)
...
@@ -58,11 +58,12 @@ LLFloaterIMSessionTab::LLFloaterIMSessionTab(const LLSD& session_id)
,
mSpeakingIndicator
(
NULL
)
,
mSpeakingIndicator
(
NULL
)
,
mChatHistory
(
NULL
)
,
mChatHistory
(
NULL
)
,
mInputEditor
(
NULL
)
,
mInputEditor
(
NULL
)
,
mInputEditor
Top
Pad
(
0
)
,
mInputEditorPad
(
0
)
,
mRefreshTimer
(
new
LLTimer
())
,
mRefreshTimer
(
new
LLTimer
())
,
mIsHostAttached
(
false
)
,
mIsHostAttached
(
false
)
,
mHasVisibleBeenInitialized
(
false
)
,
mHasVisibleBeenInitialized
(
false
)
,
mIsParticipantListExpanded
(
true
)
,
mIsParticipantListExpanded
(
true
)
,
mChatLayoutPanel
(
NULL
)
{
{
setAutoFocus
(
FALSE
);
setAutoFocus
(
FALSE
);
mSession
=
LLIMModel
::
getInstance
()
->
findIMSession
(
mSessionID
);
mSession
=
LLIMModel
::
getInstance
()
->
findIMSession
(
mSessionID
);
...
@@ -237,12 +238,15 @@ BOOL LLFloaterIMSessionTab::postBuild()
...
@@ -237,12 +238,15 @@ BOOL LLFloaterIMSessionTab::postBuild()
mChatHistory
=
getChild
<
LLChatHistory
>
(
"chat_history"
);
mChatHistory
=
getChild
<
LLChatHistory
>
(
"chat_history"
);
mInputEditor
=
getChild
<
LLChatEntry
>
(
"chat_editor"
);
mInputEditor
=
getChild
<
LLChatEntry
>
(
"chat_editor"
);
mInputEditor
->
setTextExpandedCallback
(
boost
::
bind
(
&
LLFloaterIMSessionTab
::
reshapeChatHistory
,
this
));
mChatLayoutPanel
=
getChild
<
LLLayoutPanel
>
(
"chat_layout_panel"
);
mInputEditor
->
setTextExpandedCallback
(
boost
::
bind
(
&
LLFloaterIMSessionTab
::
reshapeChatLayoutPanel
,
this
));
mInputEditor
->
setCommitOnFocusLost
(
FALSE
);
mInputEditor
->
setCommitOnFocusLost
(
FALSE
);
mInputEditor
->
setPassDelete
(
TRUE
);
mInputEditor
->
setPassDelete
(
TRUE
);
mInputEditor
->
setFont
(
LLViewerChat
::
getChatFont
());
mInputEditor
->
setFont
(
LLViewerChat
::
getChatFont
());
mInputEditor
Top
Pad
=
mChat
History
->
getRect
().
mBottom
-
mInputEditor
->
getRect
().
mTop
;
mInputEditorPad
=
mChat
LayoutPanel
->
getRect
().
getHeight
()
-
mInputEditor
->
getRect
().
getHeight
()
;
setOpenPositioning
(
LLFloaterEnums
::
POSITIONING_RELATIVE
);
setOpenPositioning
(
LLFloaterEnums
::
POSITIONING_RELATIVE
);
...
@@ -708,15 +712,11 @@ void LLFloaterIMSessionTab::forceReshape()
...
@@ -708,15 +712,11 @@ void LLFloaterIMSessionTab::forceReshape()
}
}
void
LLFloaterIMSessionTab
::
reshapeChat
History
()
void
LLFloaterIMSessionTab
::
reshapeChat
LayoutPanel
()
{
{
LLRect
chat_rect
=
mChat
History
->
getRect
();
LLRect
chat_
layout_panel_
rect
=
mChat
LayoutPanel
->
getRect
();
LLRect
input_rect
=
mInputEditor
->
getRect
();
LLRect
input_rect
=
mInputEditor
->
getRect
();
mChatLayoutPanel
->
reshape
(
chat_layout_panel_rect
.
getWidth
(),
input_rect
.
getHeight
()
+
mInputEditorPad
,
FALSE
);
int
delta_height
=
chat_rect
.
mBottom
-
(
input_rect
.
mTop
+
mInputEditorTopPad
);
chat_rect
.
setLeftTopAndSize
(
chat_rect
.
mLeft
,
chat_rect
.
mTop
,
chat_rect
.
getWidth
(),
chat_rect
.
getHeight
()
+
delta_height
);
mChatHistory
->
setShape
(
chat_rect
);
}
}
void
LLFloaterIMSessionTab
::
showTranslationCheckbox
(
BOOL
show
)
void
LLFloaterIMSessionTab
::
showTranslationCheckbox
(
BOOL
show
)
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llfloaterimsessiontab.h
+
3
−
2
View file @
4d9e3e15
...
@@ -168,7 +168,8 @@ class LLFloaterIMSessionTab
...
@@ -168,7 +168,8 @@ class LLFloaterIMSessionTab
LLOutputMonitorCtrl
*
mSpeakingIndicator
;
LLOutputMonitorCtrl
*
mSpeakingIndicator
;
LLChatHistory
*
mChatHistory
;
LLChatHistory
*
mChatHistory
;
LLChatEntry
*
mInputEditor
;
LLChatEntry
*
mInputEditor
;
int
mInputEditorTopPad
;
// padding between input field and chat history
LLLayoutPanel
*
mChatLayoutPanel
;
int
mInputEditorPad
;
// padding between input field and chat history
LLButton
*
mExpandCollapseLineBtn
;
LLButton
*
mExpandCollapseLineBtn
;
LLButton
*
mExpandCollapseBtn
;
LLButton
*
mExpandCollapseBtn
;
...
@@ -195,7 +196,7 @@ class LLFloaterIMSessionTab
...
@@ -195,7 +196,7 @@ class LLFloaterIMSessionTab
* and avoid overlapping, since input chat field can be vertically expanded.
* and avoid overlapping, since input chat field can be vertically expanded.
* Implementation: chat history bottom "follows" top+top_pad of input chat field
* Implementation: chat history bottom "follows" top+top_pad of input chat field
*/
*/
void
reshapeChat
History
();
void
reshapeChat
LayoutPanel
();
bool
checkIfTornOff
();
bool
checkIfTornOff
();
bool
mIsHostAttached
;
bool
mIsHostAttached
;
...
...
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