]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/item/inputbox.c
fix the Nexposee hacks in Item/Label
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / item / inputbox.c
index 13351cfd32c8f2586a37157f2f0e4677c6a42818..af6587b5a67ebca90ecdb614524bd94923b5fdd0 100644 (file)
@@ -146,6 +146,9 @@ void InputBox_draw(entity me)
        if(me.pressed)
                me.mouseDrag(me, me.dragScrollPos); // simulate mouseDrag event
 
+       if(me.recalcPos)
+               me.recalcPositionWithText(me, me.text);
+
        me.focusable = !me.disabled;
        if(me.disabled)
                draw_alpha *= me.disabledAlpha;