diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp index 9a4f961465..991af8450e 100644 --- a/src/network/network_gui.cpp +++ b/src/network/network_gui.cpp @@ -361,8 +361,8 @@ protected: GfxFillRect(r.Shrink(WidgetDimensions::scaled.bevel), PC_GREY); } - /* offsets to vertically centre text and icons */ - int text_y_offset = (this->resize.step_height - GetCharacterHeight(FS_NORMAL)) / 2 + 1; + /* Offset to vertically position text. */ + int text_y_offset = WidgetDimensions::scaled.matrix.top + (this->resize.step_height - WidgetDimensions::scaled.matrix.Vertical() - GetCharacterHeight(FS_NORMAL)) / 2; info = info.Shrink(WidgetDimensions::scaled.framerect); name = name.Shrink(WidgetDimensions::scaled.framerect);