diff --git a/indra/newview/llsyswellwindow.cpp b/indra/newview/llsyswellwindow.cpp
index 127b4265cacbf69622b974e38e3128c660c23895..66373feb938b0dbbfc71143bf0f622b2a03c4e6f 100644
--- a/indra/newview/llsyswellwindow.cpp
+++ b/indra/newview/llsyswellwindow.cpp
@@ -211,22 +211,25 @@ void LLSysWellWindow::reshapeWindow()
 	// it includes height from floater top to list top and from floater bottom and list bottom
 	static S32 parent_list_delta_height = getRect().getHeight() - mMessageList->getRect().getHeight();
 
-	S32 notif_list_height = mMessageList->getItemsRect().getHeight() + 2 * mMessageList->getBorderWidth();
+	if (isDocked()) // Don't reshape undocked Well window. See EXT-5715.
+	{
+		S32 notif_list_height = mMessageList->getItemsRect().getHeight() + 2 * mMessageList->getBorderWidth();
 
-	LLRect curRect = getRect();
+		LLRect curRect = getRect();
 
-	S32 new_window_height = notif_list_height + parent_list_delta_height;
+		S32 new_window_height = notif_list_height + parent_list_delta_height;
 
-	if (new_window_height > MAX_WINDOW_HEIGHT)
-	{
-		new_window_height = MAX_WINDOW_HEIGHT;
-	}
-	S32 newY = curRect.mTop + new_window_height - curRect.getHeight();
-	S32 newWidth = curRect.getWidth() < MIN_WINDOW_WIDTH ? MIN_WINDOW_WIDTH
+		if (new_window_height > MAX_WINDOW_HEIGHT)
+		{
+			new_window_height = MAX_WINDOW_HEIGHT;
+		}
+		S32 newY = curRect.mTop + new_window_height - curRect.getHeight();
+		S32 newWidth = curRect.getWidth() < MIN_WINDOW_WIDTH ? MIN_WINDOW_WIDTH
 			: curRect.getWidth();
-	curRect.setLeftTopAndSize(curRect.mLeft, newY, newWidth, new_window_height);
-	reshape(curRect.getWidth(), curRect.getHeight(), TRUE);
-	setRect(curRect);
+		curRect.setLeftTopAndSize(curRect.mLeft, newY, newWidth, new_window_height);
+		reshape(curRect.getWidth(), curRect.getHeight(), TRUE);
+		setRect(curRect);
+	}
 
 	// update notification channel state
 	// update on a window reshape is important only when a window is visible and docked
diff --git a/indra/newview/skins/default/xui/en/panel_landmarks.xml b/indra/newview/skins/default/xui/en/panel_landmarks.xml
index fdc26b5c467edbce24be2305ce723d1932fce6e5..ee8bca6f83635bd70ce773105d14fe0ce262daa5 100644
--- a/indra/newview/skins/default/xui/en/panel_landmarks.xml
+++ b/indra/newview/skins/default/xui/en/panel_landmarks.xml
@@ -10,10 +10,10 @@
    border="false"
    background_visible="true"
    bg_alpha_color="DkGray2"
-   follows="left|top|right|bottom">
+   follows="all">
     <accordion
-     follows="left|top|right|bottom"
-     height="368"
+     follows="all"
+     height="360"
      layout="topleft"
      left="0"
      name="landmarks_accordion"
@@ -27,7 +27,7 @@
              allow_multi_select="true"
              border="false"
              bottom="0"
-             follows="left|top|right|bottom"
+             follows="all"
              height="126"
              left="0"
              mouse_opaque="true"
@@ -43,7 +43,7 @@
              allow_multi_select="true"
              border="false"
              bottom="0"
-             follows="left|top|right|bottom"
+             follows="all"
              height="126"
              left="0"
              mouse_opaque="true"
@@ -59,7 +59,7 @@
              allow_multi_select="true"
              border="false"
              bottom="0"
-             follows="left|top|right|bottom"
+             follows="all"
              height="126"
              left="0"
              mouse_opaque="true"
@@ -75,8 +75,8 @@
              allow_multi_select="true"
              border="false"
              bottom="0"
-             follows="left|top|right|bottom"
-             height="120"
+             follows="all"
+             height="126"
              left="0"
              mouse_opaque="true"
              name="library_list"
diff --git a/indra/newview/skins/default/xui/en/panel_place_profile.xml b/indra/newview/skins/default/xui/en/panel_place_profile.xml
index 7672bd0799534cf51d24531f983fad863af492fd..44b2508e56ca2087c304e1436c1a4f205ae9e217 100644
--- a/indra/newview/skins/default/xui/en/panel_place_profile.xml
+++ b/indra/newview/skins/default/xui/en/panel_place_profile.xml
@@ -174,7 +174,7 @@
         <panel
          bg_alpha_color="DkGray2"
          follows="left|top|right"
-         height="532"
+         height="540"
          layout="topleft"
          left="0"
          min_height="300"
@@ -318,7 +318,7 @@
              width="268" />
             <accordion
              follows="all"
-             height="230"
+             height="223"
              layout="topleft"
              left="0"
              name="advanced_info_accordion"