diff options
| author | Vadim Savchuk <vsavchuk@productengine.com> | 2010-05-19 13:43:12 +0300 |
|---|---|---|
| committer | Vadim Savchuk <vsavchuk@productengine.com> | 2010-05-19 13:43:12 +0300 |
| commit | 2c817f0b40aa22209b498e5e42dca8eab6439f4e (patch) | |
| tree | d86f5574202c7415c93fc45c7a5cd1f7fe892d06 /indra/llui/llfloater.cpp | |
| parent | a4fc76a0f749e07d703ddb7ed923d7c4ea94ab7e (diff) | |
| parent | 8e474b095a9d228d62101540433937abdf623842 (diff) | |
Manual merge from default branch
Resolved conflicts in:
- indra/newview/skins/default/xui/en/floater_world_map.xml
- indra/newview/skins/default/xui/en/notifications.xml
--HG--
branch : product-engine
Diffstat (limited to 'indra/llui/llfloater.cpp')
| -rw-r--r-- | indra/llui/llfloater.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/indra/llui/llfloater.cpp b/indra/llui/llfloater.cpp index 79c47a1136..6babaf936b 100644 --- a/indra/llui/llfloater.cpp +++ b/indra/llui/llfloater.cpp @@ -169,6 +169,7 @@ LLFloater::Params::Params() save_rect("save_rect", false), save_visibility("save_visibility", false), can_dock("can_dock", false), + open_centered("open_centered", false), header_height("header_height", 0), legacy_header_height("legacy_header_height", 0), close_image("close_image"), @@ -763,6 +764,13 @@ void LLFloater::applySavedVariables() void LLFloater::applyRectControl() { + // first, center on screen if requested + if (mOpenCentered) + { + center(); + } + + // override center if we have saved rect control if (mRectControl.size() > 1) { const LLRect& rect = LLUI::sSettingGroups["floater"]->getRect(mRectControl); @@ -2711,6 +2719,7 @@ void LLFloater::initFromParams(const LLFloater::Params& p) mLegacyHeaderHeight = p.legacy_header_height; mSingleInstance = p.single_instance; mAutoTile = p.auto_tile; + mOpenCentered = p.open_centered; if (p.save_rect) { |
