diff options
author | Dmitry Zaporozhan <dzaporozhan@productengine.com> | 2010-03-25 15:48:08 +0200 |
---|---|---|
committer | Dmitry Zaporozhan <dzaporozhan@productengine.com> | 2010-03-25 15:48:08 +0200 |
commit | 9ff6b6ecd123d3fcd71e189094cc9cb99eca9724 (patch) | |
tree | 66054689bfc138f27c399a63363333da737ef9cb /indra/llui/lldraghandle.h | |
parent | 0f32c14cab77717dab75b8d91302104e8f168ceb (diff) |
Fixed low bug EXT-6444 - Long notecard titles continue under Locked and Help icons on title bar.
Changed the way floater title is reshaped. Calculations takes title buttons into account instead of using hardcoded values.
--HG--
branch : product-engine
Diffstat (limited to 'indra/llui/lldraghandle.h')
-rw-r--r-- | indra/llui/lldraghandle.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/llui/lldraghandle.h b/indra/llui/lldraghandle.h index dc5410787b..825bc9303e 100644 --- a/indra/llui/lldraghandle.h +++ b/indra/llui/lldraghandle.h @@ -71,6 +71,8 @@ public: BOOL getForeground() const { return mForeground; } void setMaxTitleWidth(S32 max_width) {mMaxTitleWidth = llmin(max_width, mMaxTitleWidth); } S32 getMaxTitleWidth() const { return mMaxTitleWidth; } + void setButtonsRect(const LLRect& rect){ mButtonsRect = rect; } + LLRect getButtonsRect() { return mButtonsRect; } void setTitleVisible(BOOL visible); virtual void setTitle( const std::string& title ) = 0; @@ -88,6 +90,7 @@ protected: LLTextBox* mTitleBox; private: + LLRect mButtonsRect; S32 mDragLastScreenX; S32 mDragLastScreenY; S32 mLastMouseScreenX; |