summaryrefslogtreecommitdiff
path: root/iup/src/iup_text.c
diff options
context:
space:
mode:
Diffstat (limited to 'iup/src/iup_text.c')
-rwxr-xr-xiup/src/iup_text.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iup/src/iup_text.c b/iup/src/iup_text.c
index 6cd7235..d2e2e36 100755
--- a/iup/src/iup_text.c
+++ b/iup/src/iup_text.c
@@ -365,9 +365,9 @@ static void iTextComputeNaturalSizeMethod(Ihandle* ih, int *w, int *h, int *expa
{
int sb_size = iupdrvGetScrollbarSize();
if (ih->data->sb & IUP_SB_HORIZ)
- natural_w += sb_size;
+ natural_h += sb_size; /* sb horizontal affects vertical size */
if (ih->data->sb & IUP_SB_VERT)
- natural_h += sb_size;
+ natural_w += sb_size; /* sb vertical affects horizontal size */
}
*w = natural_w;