mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-16 02:14:52 +02:00
Fixes alt-tab crash when the chatbox is open. (#33)
* Fix alt-tab crash when the user open the chatbox and did an alt-tab. * remove accidental imports
This commit is contained in:
parent
ae774a615b
commit
f0fe3a53b4
@ -88,6 +88,10 @@ Public Class ChatScreen
|
||||
'Crops too long input text:
|
||||
If FontManager.TextFont.MeasureString(Me.currentText).X * 2.0F > Core.windowSize.Width - 200 Then
|
||||
While FontManager.TextFont.MeasureString(Me.currentText).X * 2.0F > Core.windowSize.Width - 200
|
||||
If Me.currentText.Length = 0 Then
|
||||
Exit While
|
||||
End If
|
||||
|
||||
Me.currentText = Me.currentText.Remove(Me.currentText.Length - 1, 1)
|
||||
End While
|
||||
End If
|
||||
|
Loading…
x
Reference in New Issue
Block a user