diff --git a/src/guiengine/skin.cpp b/src/guiengine/skin.cpp index 5ad07bd60..f1d3483a3 100644 --- a/src/guiengine/skin.cpp +++ b/src/guiengine/skin.cpp @@ -1683,6 +1683,7 @@ void Skin::draw3DSunkenPane (IGUIElement *element, video::SColor bgcolor, bool f // minor adjustments... rect2.UpperLeftCorner.X -= 7; + rect2.LowerRightCorner.Y += 7; rect2.LowerRightCorner.X += BUBBLE_MARGIN_ON_RIGHT; if (bubble->isFocusedForPlayer(PLAYER_ID_GAME_MASTER)) diff --git a/src/guiengine/widgets/bubble_widget.cpp b/src/guiengine/widgets/bubble_widget.cpp index dc8e09ec4..02d7a91df 100644 --- a/src/guiengine/widgets/bubble_widget.cpp +++ b/src/guiengine/widgets/bubble_widget.cpp @@ -26,6 +26,8 @@ using namespace irr; using namespace GUIEngine; +const int BOTTOM_MARGIN = 10; + // ---------------------------------------------------------------------------- BubbleWidget::BubbleWidget() : Widget(WTYPE_BUBBLE) @@ -47,9 +49,12 @@ void BubbleWidget::add() EGUI_ALIGNMENT valign = EGUIA_CENTER ; //TODO: make label v-align configurable through XML file? + m_shrinked_size.LowerRightCorner.Y -= BOTTOM_MARGIN; + IGUIStaticText* irrwidget; irrwidget = GUIEngine::getGUIEnv()->addStaticText(message.c_str(), m_shrinked_size, - false, true /* word wrap */, m_parent, (m_focusable ? getNewID() : getNewNoFocusID())); + false, true /* word wrap */, m_parent, + (m_focusable ? getNewID() : getNewNoFocusID())); #if IRRLICHT_VERSION_MAJOR > 1 || (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR >= 8) irrwidget->setRightToLeft( translations->isRTLLanguage() );