Forums

NumericTextBox Caret Display Bug
Last Post 10 Sep 2015 03:23 PM by Luke Horsley. 6 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Luke HorsleyUser is Offline
New Member
New Member
Posts:4


--
08 Sep 2015 07:47 PM
    I have a NumericTextBox on my UI, however the caret does not appear to display correctly after entering a number, here is an example using the following XAML definition:

    <ek:NumericTextBox Value="0" />

    1. Initial text is 0.00
    2. Place caret at start |0.00
    3. Type number 1

    I would expect 1|0.00 however it actually displays |10.00, if you now press the right arrow once, the caret ends up at 10|.00 indicating the previous caret position was a display bug?

    It seems that when entering a number, the caret position is not displayed in the correct position.
    Filip DušekUser is Offline
    Advanced Member
    Advanced Member
    Posts:674


    --
    08 Sep 2015 10:51 PM
    Hmm, what engine do you use pls? What font/size etc.? Can you try latest MonoGame example if you have the same problem there?
    Luke HorsleyUser is Offline
    New Member
    New Member
    Posts:4


    --
    09 Sep 2015 10:40 AM
    Hi Filip, I am using the Paradox game engine, the font I am using is Segoe UI in font size 9. I will try the MonoGame example out tonight and let you know.

    If it is helpful I can produce a minimal example and upload it.
    Filip DušekUser is Offline
    Advanced Member
    Advanced Member
    Posts:674


    --
    09 Sep 2015 01:15 PM
    Hmm, can't reproduce that behavior. I can see caret is few pixels off tho. What version of Paradox are you using?
    Luke HorsleyUser is Offline
    New Member
    New Member
    Posts:4


    --
    10 Sep 2015 01:44 PM
    I think I have isolated the issue, try placing the NumericTextBox inside of a ScrollViewer, like so:

    <ScrollViewer>
    <StackPanel>
    <ek:NumericTextBox Value="0" />
    </StackPanel>
    </ScrollViewer>

    Now the input starts behaving strangely as well as being left aligned when I would expect it to still be stretched.

    I am using Paradox 1.2.2-beta.

    Filip DušekUser is Offline
    Advanced Member
    Advanced Member
    Posts:674


    --
    10 Sep 2015 02:43 PM
    Hmm I don't see the problem which you are describing in the first post, tho I see the issue when there is "," in value or when input is empty. I will make more test and fix that. Thanks for reporting tho.
    Luke HorsleyUser is Offline
    New Member
    New Member
    Posts:4


    --
    10 Sep 2015 03:23 PM
    Could it perhaps be a culture issue? When I have <ek:NumericTextBox Value="0" /> I see 0.00 at runtime which leads on to the issues. Hopefully your fix will solve the issue I am having

    Thanks for the help
    You are not authorized to post a reply.