summaryrefslogtreecommitdiff
path: root/indra/llui/lldraghandle.h
diff options
context:
space:
mode:
authorDmitry Zaporozhan <dzaporozhan@productengine.com>2010-03-25 15:48:08 +0200
committerDmitry Zaporozhan <dzaporozhan@productengine.com>2010-03-25 15:48:08 +0200
commit9ff6b6ecd123d3fcd71e189094cc9cb99eca9724 (patch)
tree66054689bfc138f27c399a63363333da737ef9cb /indra/llui/lldraghandle.h
parent0f32c14cab77717dab75b8d91302104e8f168ceb (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.h3
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;