diff options
| author | Merov Linden <merov@lindenlab.com> | 2011-10-10 18:22:56 -0700 |
|---|---|---|
| committer | Merov Linden <merov@lindenlab.com> | 2011-10-10 18:22:56 -0700 |
| commit | 8b5a905bdbabf1d81bebdff8925098137fd653ab (patch) | |
| tree | d76206c5b9f9996e7498cfdacd44a87961920765 /indra/llui/llresizehandle.cpp | |
| parent | 1478f22857c24f4f3ecfcf7a08fdd4d5392ee3e6 (diff) | |
| parent | 7e13856df2c60a7e011df01459a3a085a3a4a82a (diff) | |
pull from richard/viewer-experience-fui
Diffstat (limited to 'indra/llui/llresizehandle.cpp')
| -rw-r--r-- | indra/llui/llresizehandle.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/indra/llui/llresizehandle.cpp b/indra/llui/llresizehandle.cpp index 942e84eeb6..c3a51c36c9 100644 --- a/indra/llui/llresizehandle.cpp +++ b/indra/llui/llresizehandle.cpp @@ -55,8 +55,6 @@ LLResizeHandle::LLResizeHandle(const LLResizeHandle::Params& p) mImage( NULL ), mMinWidth( p.min_width ), mMinHeight( p.min_height ), - mMaxWidth(S32_MAX), - mMaxHeight(S32_MAX), mCorner( p.corner ) { if( RIGHT_BOTTOM == mCorner) @@ -179,11 +177,6 @@ BOOL LLResizeHandle::handleHover(S32 x, S32 y, MASK mask) new_width = mMinWidth; delta_x = x_multiple * (mMinWidth - orig_rect.getWidth()); } - else if (new_width > mMaxWidth) - { - new_width = mMaxWidth; - delta_x = x_multiple * (mMaxWidth - orig_rect.getWidth()); - } S32 new_height = orig_rect.getHeight() + y_multiple * delta_y; if( new_height < mMinHeight ) @@ -191,11 +184,6 @@ BOOL LLResizeHandle::handleHover(S32 x, S32 y, MASK mask) new_height = mMinHeight; delta_y = y_multiple * (mMinHeight - orig_rect.getHeight()); } - else if (new_height > mMaxHeight) - { - new_height = mMaxHeight; - delta_y = y_multiple * (mMaxHeight - orig_rect.getHeight()); - } switch( mCorner ) { |
