summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/win/PopupMenuWin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/win/PopupMenuWin.cpp')
-rw-r--r--Source/WebCore/platform/win/PopupMenuWin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WebCore/platform/win/PopupMenuWin.cpp b/Source/WebCore/platform/win/PopupMenuWin.cpp
index 3f3afa2..c75e219 100644
--- a/Source/WebCore/platform/win/PopupMenuWin.cpp
+++ b/Source/WebCore/platform/win/PopupMenuWin.cpp
@@ -326,7 +326,7 @@ void PopupMenuWin::calculatePositionAndSize(const IntRect& r, FrameView* v)
itemFont.update(m_popupClient->fontSelector());
}
- popupWidth = max(popupWidth, itemFont.width(TextRun(text.characters(), text.length())));
+ popupWidth = max(popupWidth, static_cast<int>(ceilf(itemFont.width(TextRun(text.characters(), text.length())))));
}
if (naturalHeight > maxPopupHeight)