summaryrefslogtreecommitdiff
path: root/src/preview
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-20 19:41:38 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-20 19:41:38 (GMT)
commit1b75cbdcc93ebe63c4eae9e12107ce3ebf8ca7a6 (patch)
treee9c71a6070d388372bf57b3806bcbeb1b39fa9ac /src/preview
parent8e43ee60bbca41ab420712eb723a37770bfe062e (diff)
downloadpowder-1b75cbdcc93ebe63c4eae9e12107ce3ebf8ca7a6.zip
powder-1b75cbdcc93ebe63c4eae9e12107ce3ebf8ca7a6.tar.gz
Limit on text width in textboxes
Diffstat (limited to 'src/preview')
-rw-r--r--src/preview/PreviewView.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/preview/PreviewView.cpp b/src/preview/PreviewView.cpp
index 762cf80..5b7952b 100644
--- a/src/preview/PreviewView.cpp
+++ b/src/preview/PreviewView.cpp
@@ -169,7 +169,7 @@ void PreviewView::commentBoxAutoHeight()
if(!addCommentBox)
return;
int textWidth = Graphics::textwidth(addCommentBox->GetText().c_str());
- if(textWidth+5 > Size.X-(XRES/2)-48)
+ if(textWidth+10 > Size.X-(XRES/2)-48)
{
commentBoxHeight = 59;
addCommentBox->SetMultiline(true);